Regex help needed

RonaldS

New member
Jun 17, 2010
289
1
0
Hi guys,

I make use of RegExr as my editor for regex, now if u visit the site, and type in 're', you will notice that all the 're' matches get highlighted because the global checkbox is on. If I uncheck this box, then only the first instance gets selected.

How do I do this without the checkbox? For instance if I need to ignore case, I can simply type in (?i), so what is the regex pattern to disable the global pattern match?
 


To disable the global pattern match, just don't use the /g flag. You can also use /U to disable greedy matching.