Matching multiple lines with regexp

  • Thread starter lcs Mixmaster Remailer
  • Start date
L

lcs Mixmaster Remailer

If I want to match two words appearing on two lines, how's it done?

dog
cat


if $match =~ /^dog . . . \n . . . cat/ . . . ????????????????????
 
T

Tad McClellan

lcs Mixmaster Remailer said:
If I want to match two words appearing on two lines, how's it done?


perldoc -q line

I'm having trouble matching over more than one line. What's wrong?

How can I pull out lines between two patterns that are themselves on
different lines?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top