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
ppr
(Peter Preuss)
August 22, 2022, 5:11pm
2
1 Like
Hi thanks for the response but i also want the number in my output
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?
ppr
(Peter Preuss)
August 22, 2022, 6:25pm
7
till was interpreted as till the number starts
so we can do:
And also using groups
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
ppr
(Peter Preuss)
August 23, 2022, 10:45am
9
the cheatsheet is linking to @Steven_McKeering ’ Megapost
and he linked some other resources for the regex learning as well
1 Like
system
(system)
Closed
August 26, 2022, 10:45am
10
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.