Below mentioned regex from is not working with UiPath matches activity.
“(?<=Full\sName\s)(.?([^\n]))”
Basically, I’m trying to extract the full name from text document by using above mentioned regex.
The mentioned expression able to find the matches when I’m checking with regexr or regex101 .
Attaching doc file for your reference. Scrapp_2.txt (1.4 KB)
Your expression is matching, but it was not giving the output. In output pannel when I’m logging the Regoutput(0), it is giving me “no value” as output
On the other hands, [^\n] is same as . (period) in regex. And .? is probably for enable to handle both linebreak: CrLF and LF. As a result , the pattern will be
(?<=Full\sName\r?\n).*
And finally, FYI, regex 101 is not compatible with .net regex. And set Multiline mode as default. So this is reason why @ashwin.ashok 's pattern doesn’t work in Matches activity. On the conversely, If Multiline option of Matches activity is on, it might work, too.