Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Unicode regular expressions

by eye (Chaplain)
on Dec 06, 2009 at 09:10 UTC ( #811315=note: print w/ replies, xml ) Need Help??


in reply to Unicode regular expressions

This is small, but no one has mentioned it. The OP wrote:

Additionally ignoring the unicode characters the following works:
/^[\w\ \-]+$/
Because of the "\w", this will match underscores (_); I don't think that is what is intended by:
...regular letters, hyphens, unicode letters, numbers, spaces, newlines (\n or \r\n) but no punctuation of any sort.


Comment on Re: Unicode regular expressions
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (14)
As of 2015-07-31 12:19 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 (277 votes), past polls