how to extract using regex ?
My string is like this → “Explore results with the Tools below. Replace & List output custom results. Details lists capture groups. Explain describes your expression in plain English.”
here i want to get after a word → “Replace”
then my result will -->“& List output custom results. Details lists capture groups. Explain describes your expression in plain English.”
@brindhaS Please check below regex considering str is string variable which contains your text.
system.Text.RegularExpressions.Regex.Match(str,"(?<=Replace).+").ToString
Hi @brindhaS,
In UiPath Studio you can use the Matches activity (more info here: https://docs.uipath.com/activities/docs/matches).
For your issue this simple regular expression should do the trick .*Replace(.*)
(live code: regex101: build, test, and debug regex).
Regards,
Masiré