Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Regexp \N{name}

by Anonyrnous Monk (Hermit)
on Feb 03, 2011 at 10:35 UTC ( #885958=note: print w/ replies, xml ) Need Help??


in reply to Re: Regexp \N{name} (use of \e)

how I use special character \N{name} in regular expression

Example:

#!/usr//bin/perl -wl use strict; use charnames ':full'; my $string = "foo \N{COPYRIGHT SIGN} bar"; print "matched" if $string =~ /\N{COPYRIGHT SIGN}/;

The list of names can be found in the file .../unicore/NamesList.txt that comes with Perl.


Comment on Re: Regexp \N{name}
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2015-07-06 09:58 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 (71 votes), past polls