Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: Regex get Text between two strings with colon

by MurciaNew (Novice)
on Sep 16, 2017 at 19:12 UTC ( #1199529=note: print w/replies, xml ) Need Help??


in reply to Re: Regex get Text between two strings with colon
in thread Regex get Text between two strings with colon

Thanks for hints. Is there a Solution without modifiers and slurps? Just "pure" regex?
  • Comment on Re^2: Regex get Text between two strings with colon

Replies are listed 'Best First'.
Re^3: Regex get Text between two strings with colon
by AnomalousMonk (Chancellor) on Sep 16, 2017 at 23:24 UTC

    As the Anonymous One has said, modifiers are an entirely kosher part of regexes, and haukex has already linked to a discussion of non-slurping, line-by-line matching.


    Give a man a fish:  <%-{-{-{-<

Re^3: Regex get Text between two strings with colon
by Anonymous Monk on Sep 16, 2017 at 19:49 UTC
    modifiers are "pure regex".

    and if you don't want to slurp, then how do you expect a regex to match over data you haven't read?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1199529]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2018-08-18 21:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Asked to put a square peg in a round hole, I would:









    Results (186 votes). Check out past polls.

    Notices?