Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. use strict;
  2. use warnings;
  3.  
  4. my $test = "testString";
  5. print $1 if ($test =~ m/^(p{L}+)$/); #testString
  6. $test = "testStringö";
  7. print $1 if ($test =~ m/^(p{L}+)$/); #no print msg
  8. $test = "testéString";
  9. print $1 if ($test =~ m/^(p{L}+)$/); #no print msg
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement