Regex Error String Error

Sipariş No
260537
Sipariş Tarihi
16.07.2022

Output:260537

How is the made Regex ?

Hey

You can use

System.Text.RegularExpressions.Regex.Match(yourString,“\d{6}”)

No, because there are a lot of 6-digit numbers. The order number (Sipariş No) is a unique value, we need to do it using it.

Hi,

How about the following expression?

System.Text.RegularExpressions.Regex.Match(yourString,"(?<=Sipariş No\r?\n)\d+").Value

Main.xaml (5.2 KB)

Regards,

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.