cburger has asked for the wisdom of the Perl Monks concerning the following question:
hi I have a question:
I am trying to write a regular expression where I am matching every word/sign across new line characters, so I need an expression which combined .* and \n\s but all combinations I tried so far did not work. Help would be very appreciated.
$/=">"; while(<F>) { if ($_=~/\<word1\>(.*)\<word2\>/) { $g=$1; } close(F);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: regular expression
by jethro (Monsignor) on Jan 26, 2011 at 00:41 UTC | |
by cburger (Acolyte) on Jan 26, 2011 at 00:57 UTC | |
|
Re: regular expression
by Anonymous Monk on Jan 26, 2011 at 00:41 UTC |