Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: regular expression for getting text between 1. and 2.

by CountOrlok (Friar)
on Apr 12, 2013 at 21:04 UTC ( #1028443=note: print w/ replies, xml ) Need Help??


in reply to Re: regular expression for getting text between 1. and 2.
in thread regular expression for getting text between 1. and 2.

Funny. The user asked the same question on SO and I replied with this same answer but he then came up with more input strings that complicate the regex.


Comment on Re^2: regular expression for getting text between 1. and 2.
Re^3: regular expression for getting text between 1. and 2.
by hdb (Parson) on Apr 12, 2013 at 21:23 UTC

    This is a problem with many regex questions here and elsewhere. Just a handful of examples usually do not really explain what the pattern is. Sometimes I find it challenging to "guess" what the real question is (sometimes this is impossible) and sometimes I just answer what was asked for. The hope is that the OP learns something from either answer. At least I often do...

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2014-08-23 02:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (171 votes), past polls