nysus has asked for the wisdom of the Perl Monks concerning the following question:
"skkjnfinduekasdhelkjadfoijejdklk"Between each character in the string, there can be zero or more newlines. So the file could look something like this:
s kkjn find ue k asd helkjadfoijejdklkMy question is, is there a way to tell the RE engine to ignore newline characters so I don't have to write
/u\n*e\n*k\n*a\n*s\n*d\n*h\n*/to match the string
"uekasdh"?
$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop";
$nysus = $PM . $MCF;
Click here if you love Perl Monks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Matching across newlines without stripping them out
by BrowserUk (Patriarch) on Jun 15, 2003 at 19:16 UTC | |
|
Re: Matching across newlines without stripping them out
by TomDLux (Vicar) on Jun 15, 2003 at 19:09 UTC | |
|
Re: Matching across newlines without stripping them out
by ihb (Deacon) on Jun 15, 2003 at 23:44 UTC | |
by aquarium (Curate) on Jun 16, 2003 at 10:59 UTC | |
|
Re: Matching across newlines without stripping them out
by Anonymous Monk on Jun 17, 2003 at 06:04 UTC |