Hello @vboddu
Try this more Robust Regex.
(?<=Attn:)(.*)(\d{8})
Get Group 2 for the result.
can’t we get regex without group ? can’t we regex to get the number from attn line ?
Hello
You can but you will need to use a simple piece of Regex like:
\d{8}.
Why don’t you want to use groups? Groups are required sometimes when you make a robust Regex pattern.
Try this solution then. No Groups.
[\d]{8}(?=))
It will only match 8 digits when they are finished with a bracket.
I don’t want groups just to avoid iteration.Thanks Steve
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.