Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^4: A sub named ∃

by vkon (Curate)
on Nov 30, 2006 at 21:27 UTC ( [id://587051]=note: print w/replies, xml ) Need Help??


in reply to Re^3: A sub named ∃
in thread A sub named ∃

all my concious life any unicode-capable perl matches with \w any unicode letter, and I often match russian letters e.g. 0x0432 with \w.

I never did [[:alpha:]], but did succeeded russian letters matching with \w

Replies are listed 'Best First'.
Re^5: A sub named ∃
by diotalevi (Canon) on Nov 30, 2006 at 21:39 UTC

    \w is [_\p{IsAlpha}\p{IsNumeric].

    ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

      Or, more concisely, [^\W\d]; so identifiers match /\b[^\W\d]\w*\b/. Gosh, I love that trick. :)

      - tye        

        I wish I'd thought of that.

        ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

      Oh, I see. we were speaking oranges and green oranges...

      Still, my first sentence is valid (∃!~/\w/), but you're saying that's not enough for identifiers rule... but I was not intended to say that I am rediscovering identifier regexp!
      :)

Log In?
Username:
Password:

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

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

    No recent polls found