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

Re: Rewrite for "How to get ($1, $2, ...)?

by throop (Chaplain)
on Feb 17, 2007 at 23:43 UTC ( #600652=note: print w/replies, xml ) Need Help??


in reply to Rewrite for "How to get ($1, $2, ...)?
in thread How to get ($1, $2, ...)?

Even after reading and re-reading your Update, I still don't quite get your problem.
  1. Do your patterns span multiple lines, or must each pattern match within a single line?
  2. Do your patterns always start matching at the beginning of a line, or do you sometimes pickup a pattern halfway through a line?
If the patterns can span multiple lines, when you apply the first pattern, it's may skip over text that will match the second (third, fourth...) pattern. Won't it?

Also, unless the patterns are contstrained to start matching at the beginning of a line, it sounds like you're heading for a wildly inefficient and slow routine. Or am I misunderstanding you?

throop

  • Comment on Re: Rewrite for "How to get ($1, $2, ...)?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2019-07-21 11:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If you were the first to set foot on the Moon, what would be your epigram?






    Results (7 votes). Check out past polls.

    Notices?