It 'worked' for me. You might want to let us know what you are trying to capture or accomplish and show a complete program.
use warnings; use strict; foreach my $str ( 'LLLLLLLLLLLLLLLLLLLOOOOOOOOOOOOO', 'LLLLLLLLLLCOOOO +OOOOOOOOOOOOOOOOOO' ){ if($str=~/^(L+)/ or $str=~/^(L+C)/) { print "matched '$1'\n"; } } __END__ matched 'LLLLLLLLLLLLLLLLLLL' matched 'LLLLLLLLLL'
In reply to Re: Regular expressions mystery
by Lotus1
in thread Regular expressions mystery
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |