Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: How to enforce match priority irrespective of string position

by jcb (Parson)
on Mar 09, 2021 at 00:17 UTC ( [id://11129356]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $lastpos = 0;
    while ($lastpos < length $_) {
    ...
      #   substr $_, $lastpos, ($matches[$chosen] - $lastpos)
      #  should yield the selected chunk between choosing a match and upda
    +ting $lastpos
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-03-29 06:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found