my expression is as follows: System.Text.RegularExpressions.Regex.Match(myText, “(?sim)(?<=hhh).*(?=ENTER ADDITIONAL SPACE)”).VALUE
However, it doesn’t work.
Could anyone please help?
Many thanks!
Just use this in in an Assign Activity or using a Matches activity.
Read your text file and store it as a String variable.
Use
Regex.Matches(yourString," ")
[\d ]+ [\d]+(?=\n) this pattern will be fetched from your text file after you read and pass it as a string variable.
.
which will return an array of results
like below.
It will return an IEnumerable of matches and you can loop through each match as a String.