Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: Perl Get issue

by choroba (Bishop)
on Nov 14, 2012 at 10:59 UTC ( #1003783=note: print w/replies, xml ) Need Help??

in reply to Perl Get issue

Withoug qr//s, a dot does not match a newline.

Moreover, do not parse HTML with regular expressions. See Super Search.

لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^2: Perl Get issue
by perlnoobster (Sexton) on Nov 14, 2012 at 11:05 UTC
    Hello, Sorry I do not understand, what do you mean qr//s? do I replace (.+?) with that? Thank you :)
      The qr part might be throwing you off. You don't need to change anything to qr; just add the s switch to the end of your regex:
      (qr// is just the regex quote operator; in this case it was used as a generic example of how to make a . match newlines).

      When's the last time you used duct tape on a duct? --Larry Wall
        Thank you so much, it works great! however it puts the Coming soon bit on a new line, is there any method of printing the results onto the same row? Thank you!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1003783]
[Your Mother]: Sure, sure. I had a cat as a kid who always slept on top of the fridge because of the heat dissipation up the back.

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (14)
As of 2017-12-18 15:32 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (492 votes). Check out past polls.