Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Regex: Char-class equivalent for [^]

by Anonymous Monk
on Jan 14, 2013 at 14:01 UTC ( #1013217=note: print w/ replies, xml ) Need Help??


in reply to Regex: Char-class equivalent for [^]

So a character class that matches everything? Did you check perlrecharclass

\p{All} and not all is \P{All}

\p{All} in javascript is  [\u0000-\u10FFFF] and not all [^\u0000-\u10FFFF]

in perl  [\x{U+0000}-\x{U+10FFFF}]  [^\x{U+0000}-\x{U+10FFFF}]


Comment on Re: Regex: Char-class equivalent for [^]
Select or Download Code
Re^2: Regex: Char-class equivalent for [^]
by LanX (Canon) on Jan 14, 2013 at 14:16 UTC
    > Did you check perlrecharclass

    Yes i did. Did you?

    p{All} isn't mentioned there

    Anyway googling led me to perluniprops, a perldoc not available for 5.10.

    Cheers Rolf

      :) well, perlrecharclass links perluniprops

      aslo, shhould have bee  [\N{U+0000}-\N{U+10FFFF}]  

      and for javascript \u only takes 16 bits, whoops :)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2015-07-06 09:21 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 (70 votes), past polls