Perl: the Markov chain saw | |
PerlMonks |
Re: Regex Questionby cat2014 (Monk) |
on Jan 08, 2001 at 00:03 UTC ( [id://50376]=note: print w/replies, xml ) | Need Help?? |
i think that you want something like:
this should match exactly 1 newline which is surrounded by a non-newline character on either side. the {1} modifies the character before it & tells it that you have to match exactly 1. it's a pretty good thing to learn- basically, you do:
you should read the perlre page for more information. update: the above code, as merlyn pointed out, is wrong- you should use his example. but i still think that you should read the perlre page. (:
In Section
Seekers of Perl Wisdom
|
|