How to get only Invoice Number

How can I get the only invoice number using Regex expression [ I highlighted it ]

Invoice Number: 12345
Due Date Invoice: 32040

@lakshman plz help

2 Likes

Buddy @balkishan
try this β€œ[0-9].*”
This worked buddy
see @balkishan

Cheers

1 Like

@balkishan Try below regex

 System.Text.RegularExpressions.Regex.Match(str1,"(?<=Invoice Number:).+").ToString.Trim

where str1 is string variable which contains ur value.

1 Like

No bro

buddy @balkishan

1 Like

Your xaml is here.Get_Invoice_Number.xaml (11.0 KB)

1 Like

Thanks but it will select the below number also as I mentioned in the post.

Thanks so much for your response. it’s resolved @Spark_robot :slight_smile:

Right Solution is: image

1 Like

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