Without the + the /g will produce multiple attempts and return matches for each one.
BTW: did you really mean ,+ ??? Looks weird...
Cheers Rolf
( addicted to the Perl Programming Language)
In reply to Re: Iterations in regex
by LanX
in thread Iterations in regex
by vitoco
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |