Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Re: Useful Uses of regex code expressions?

by kvale (Monsignor)
on Jun 27, 2002 at 03:28 UTC ( [id://177621]=note: print w/replies, xml ) Need Help??


in reply to Re: Useful Uses of regex code expressions?
in thread Useful Uses of regex code expressions?

Very nice! I especially like the partial backreferences.

It is possible to dynamically build character classes the ordinary way:
foreach my $char (a..d) { print "bbb matches $char\n" if "bbb" =~ /[$char]/; }
prints
bbb matches b

Thanks for expanding my horizons!

-Mark

Log In?
Username:
Password:

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

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

    No recent polls found