Prints~linux>perl -e '$BEGIN{my @found = ()}; $foo = q|A--B|; while($foo=~m/ +\-/g){push @found,@+}; END{print qq|found at $found[0] to $found[$#fo +und]|}'
found at 2 to 3
Celebrate Intellectual Diversity
In reply to Re: Regular Expression Search
by InfiniteSilence
in thread Regular Expression Search
by Monk007
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |