Regex global modifier

Hello !

Does anyone have any idea how can i place a global FLAG in a regex syntax.

For example, i have the following string:

“Mail BM2123145 ---- ---- — BM2123145 ------ BM2123145”

With the syntax BM[a-zA-Z0-9]+ , what I want to do is to return all 3 BM2123145,

Thank you in advance !!

If you use the matches activity check the available options in this field:
image
If you want to use invoke code just add the following options to your regex:
RegexOptions options = RegexOptions.Multiline

2 Likes

It worked,

Thank you for your help !

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