in reply to Two-dimensional match/regex?
This regular expression can be used in conjunction with the multi-line match option for regular expressions as follows, similar to how one would use the case-insensitive option for regular expressions:
if ($target =~ /\/\^\\\n.+C/m) { }
For further information see perlman:perlre
Update - This regular expression has been tested and does work. The effectiveness of a multi-line regular expression match can be tailored within the regular expression itself - That is, the more specific which you make your regular expression, the greater the specificity of the match, but as with all targeted solutions, there is a trade-off between sensitivity and specificity.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Two-dimensional match/regex?
by osfameron (Hermit) on May 22, 2002 at 10:44 UTC | |
by rsteinke (Scribe) on May 23, 2002 at 05:31 UTC |