Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
This feels however as if it could be simplified into a single regular expression.my ($match) = $string =~ /<(ab)>/; ($match) = $string =~ /(ab)/ unless defined $match;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Help with Regular Expression matching
by Tomte (Priest) on Feb 18, 2004 at 11:03 UTC | |
|
Re: Help with Regular Expression matching
by Skeeve (Parson) on Feb 18, 2004 at 12:05 UTC | |
|
Re: Help with Regular Expression matching
by skx (Parson) on Feb 18, 2004 at 10:15 UTC | |
by Anonymous Monk on Feb 18, 2004 at 10:20 UTC | |
by skx (Parson) on Feb 18, 2004 at 10:27 UTC | |
by Anonymous Monk on Feb 18, 2004 at 10:41 UTC | |
by davis (Vicar) on Feb 18, 2004 at 10:43 UTC | |
by Anonymous Monk on Feb 18, 2004 at 10:46 UTC | |
|
Re: Help with Regular Expression matching
by ysth (Canon) on Feb 18, 2004 at 18:44 UTC |