Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: Regular Expression: search two times for the same number of any signs

by hippo (Bishop)
on Nov 29, 2016 at 10:31 UTC ( [id://1176783]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Regular Expression: search two times for the same number of any signs
in thread Regular Expression: search two times for the same number of any signs

If that's really the case (and you are probably right) then maybe change the order: find the first and last occurrence of 'x', calculate where the middle one should be and look there?

However, the spec is a little woolly and the whole thing is still shouting "XY!" at me.

  • Comment on Re^3: Regular Expression: search two times for the same number of any signs

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (2)
As of 2024-04-25 20:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found