Regex Question - How do I add 'Single Line' to the expression?

Hi all,

I have the following regex (System.Text.RegularExpressions.Regex.Match(PdfText, “Remarks\s(.*)\sLines”).Groups(1).Value.Trim) which spans across multiple line. When I use the syntax in Regex101 there is an option to use “Single Line” in order to ignore line breaks etc.

Is there a way to add “Single Line” to the above regex uipath syntax please?

1 Like

Can you check please following:

or on API:

System.Text.RegularExpressions.Match Match (string input, string pattern, System.Text.RegularExpressions.**RegexOptions options**);

RegexOptions Enum: SingleLine

Thanks a lot for the help! I used the API option and it worked a treat.


This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.