Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Regex Matching Unicode and Regex Classes

by McA (Curate)
on Nov 02, 2011 at 13:53 UTC ( #935400=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -CO
    use strict;
    ...
    print "UTF8-Flag: ", utf8::is_utf8($b) ? "Yes" : "No";
    print "    matches word: ", $b =~ /\w/ ? "Yes" : "No";
    print "\n";
    
  2. or download this
    UTF8-Flag: Yes    matches word: Yes
    UTF8-Flag: No    matches word: No
    UTF8-Flag: Yes    matches word: No
    UTF8-Flag: No    matches word: No
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://935400]
Approved by moritz
Front-paged by GrandFather
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (10)
As of 2014-08-20 11:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (110 votes), past polls