Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Inspect the members of a Posix Character Class

by davido (Cardinal)
on Jul 29, 2021 at 14:26 UTC ( [id://11135491]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl -MUnicode::UCD=prop_invlist -MString::Range::Expand=expand_expr -
    +MList::Util=pairmap -E 'say join(",", sort map {chr} expand_expr(join
    +(",", pairmap{"[$a-".($b-1)."]"} prop_invlist("PosixAlpha"))))'
    A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,a,b,c,d,e,f,g,h,i,
    +j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z
    
  2. or download this
    use strict;
    use warnings;
    ...
    my @chars = sort map {chr $_} expand_expr($to_expand);
    
    print join(',', @chars), "\n";
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-19 13:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found