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

Re: help needed to solve in regex

by wazoox (Prior)
on Jan 10, 2007 at 12:03 UTC ( [id://593889]=note: print w/replies, xml ) Need Help??


in reply to help needed to solve in regex

The problem is that "." matches any character in regexes, so

/1.2.3/
Actually means match "1" followed by any character then "2" then any character then "3" . What others suggested is to escape the dots so that they only match dots, using the different ways available (because of course TIMTOWTDI).

By the way if you need to try out your regexes in an easy and graphical way, I advise you to try the wonderful script regexperiment from paul Gaborit, I use it a lot and it saved me much time and effort.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-24 19:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found