in reply to Help with Regular Expression matching
So you want to match some text which might be surrounded by brackets?
Just match against "<?" and ">?" for the bracket zero or more times.
($match) = $string =~ /<?(ab)>?/;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Help with Regular Expression matching
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 |