Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Parse a large string

by mwah (Hermit)
on Mar 10, 2009 at 12:41 UTC ( #749575=note: print w/replies, xml ) Need Help??


in reply to Parse a large string

... print join "\n", $text =~ /(?:Nullam|Donec) [^.]+ (?:augue|libero)/gx +; ...

Regards

mwa

Replies are listed 'Best First'.
Re^2: Parse a large string
by Bloodnok (Vicar) on Mar 10, 2009 at 13:10 UTC
    I'm with you on this one, mwah, but wonder what you need the x modifier for - it appears to make no difference...

    A user level that continues to overstate my experience :-))
      I'm with you on this one, mwah, but wonder what you need the x modifier for - it appears to make no difference...

      Right, it doesn't make any difference here by accident or simplicity of the problem ;-)

      The /x is meant to mark withespaces in regexes as "not meant as part of the expression".

      Thanks & Regards

      mwa

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2021-04-11 01:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?