Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Inspect the members of a Posix Character Class

by LanX (Saint)
on Jul 29, 2021 at 12:52 UTC ( [id://11135480]=note: print w/replies, xml ) Need Help??


in reply to Inspect the members of a Posix Character Class

> But what if you want to reverse that?

What does that mean? Could you give an example?

At best an Short, Self-Contained, Correct Example ...

edit

did you check perlrecharclass and do you expect also to get a list of characters from the shown intersection operations?

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

  • Comment on Re: Inspect the members of a Posix Character Class

Replies are listed 'Best First'.
Re^2: Inspect the members of a Posix Character Class
by NERDVANA (Deacon) on Jul 29, 2021 at 13:11 UTC
    Added an example for you. (which actually runs a lot faster than I expected, but is still very inefficient) And I don't really need intersections. perlrecharclass doesn't seem to mention any API for querying perls internal tables.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-04-20 02:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found