(the r.e.s may not be perfect, i'm just writing them without testing)my $group; if ($teststring =~ /^\[(\w+)]/) { $group = $1; } elsif ($teststring =~ /^(\w+)/ { $group = $1; ...
In reply to Re: Problem with RegEx & various "endings"
by pjotrik
in thread Problem with RegEx & various "endings"
by timesink
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |