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 !!