String Manipulation.. for a string

I wanted to find the index of a integer in a string for example -

Hlo my number 0000127361 and it contains.

So I want to extract till the number and it should not get - “and it contains”
This line can change on each iteration but I want to extract till the number and not after the number

One option could be regex
grafik

[CheatSheet] - System.Text.RegularExpressions | RegEx - News / Tutorials - UiPath Community Forum

1 Like

Hi thanks for the response but i also want the number in my output

.*\d+

hey @ashish_negi Please find the regex code to extract datas from string upto numbers
(.)+[\d$]

Thanks and Regards…
Sreejith…

If there is one more number after the end of sectence but I want it till only the first occurance then what can it be?

till was interpreted as till the number starts

so we can do:
grafik

And also using groups
grafik
grafik

1 Like

Thanks a lot it solved the issue i am new to regex can u suggest me some beginner to advance YouTube playlist to learn regex,

Thank you

the cheatsheet is linking to @Steven_McKeering ’ Megapost

and he linked some other resources for the regex learning as well

1 Like

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