Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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.

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 meditating upon the Monastery: (9)
As of 2016-09-28 22:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (541 votes). Check out past polls.