Add flag unicode to System.Text.RegularExpressions.Regex

Hello guys,

I build some RegEx to extract data from a text, but one of it has a problem because it uses \p{L} to match unicode character. It works when I test in websites like regexr and regex101, but on Studio returns nothing.

Hi,

It might be linebreak matter. Can you try to use (?=\r?\n) instead of (?=\n)?

And please make sure set flavor .Net(C#) if use regex101. (regexr doesn’t seem to support .net regex)

image

Or can you share your input and expected output? It’s no problem if dummy data.

Regards,