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

Re: With Unicode, \d is wrong if you mean [0-9]

by olivierp (Hermit)
on Oct 26, 2004 at 15:44 UTC ( #402650=note: print w/ replies, xml ) Need Help??


in reply to With Unicode, \d is wrong if you mean [0-9]
in thread Regex help

I'd say it depends on what you mean with "breaks".
Your code will still match [0-9] as you are used to, but will also match other characters defined as "digits" in other "scripts". If you depend on a "Latin" digit elsewhere in the code, I think you may have undesired side effects.


--
Olivier


Comment on Re: With Unicode, \d is wrong if you mean [0-9]

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (16)
As of 2015-07-28 14:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (255 votes), past polls