ReHelp

for 123-00000124 to capture form string

@manoj_verma1
Try this one.

^(\d+T-\d+)$

\b\d+T-\d+\b


Try second one.

@manoj_verma1

if the number of numbers and letters are contain always try this

\d{3}[A-Z]-\d{8}

if not

\d+[A-Z]-\d+

cheers

@manoj_verma1 I updated post and second one is better and valid one. Try and let me know

Hi @manoj_verma1

Try the below following regex expression:

[0-9A-Z]+\-+[0-9]+

Hope it helps!!
Regards,

Hi @manoj_verma1

How about this Regular expression?

System.Text.RegularExpressions.Regex.Match(YourString,"\d+\S-\d+").Tostring

image

Regards
Gokul

Hi @manoj_verma1

Please check the below regex expression to extract the required output.

System.Text.RegularExpressions.Regex.Matches(yourstringinput.ToString,“(\d+\w*-\d+)”)

or you can use the matches activity and store it in a variable like var1.
Then take assign activity output = Var1(0).toString

image

Hope it helps!!

Thank you so much for the solution, it helped me solve the problem. thank you again.

1 Like

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