perl -E '$x = "12345"; $a = $x =~ /4/g; $b = $x =~ /1/g; say "$a,$b.\n +"'
In reply to Re^3: What does 'global' (/g) do in a regexp in this particular case?
by choroba
in thread What does 'global' (/g) do in a regexp in this particular case?
by DreamT
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |