Created
September 17, 2013 11:28
-
-
Save kfly8/6593086 to your computer and use it in GitHub Desktop.
後読み否定...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use 5.10.0; | |
| use strict; | |
| use warnings; | |
| #perl -E 'say for q{12345 #123456 � #12345678; �} =~ /(?<!&)#([0-9]+)/g' | |
| for my $message ('12345', '#123456', '�', '#12345678;', '�') { | |
| if ($message =~ m/#([0-9]+)/) { | |
| unless ($message =~ m/&#$1/) { | |
| say $1; | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment