Matching multiple lines with regexp

Discussion in 'Perl Misc' started by lcs Mixmaster Remailer, Feb 11, 2004.

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

    dog
    cat


    if $match =~ /^dog . . . \n . . . cat/ . . . ????????????????????
     
    lcs Mixmaster Remailer, Feb 11, 2004
    #1
    1. Advertisements


  2. 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?
     
    Tad McClellan, Feb 11, 2004
    #2
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.