Music: OFF Type regular expression which matches zombie's name and kill them. Don't kill humans. Regular Expression: . match any charactor ^ top of strings $ end of strings [] charactor set * repeat + repeat
Take a look at this Perl regular expression: perl -lne '(1x$_) =~ /^(11+?)\1+$/ && print "$_ is composite"' This regular expression matches only the composite numbers (and doesn't match prime numbers). Can you figure out how it works? I'll give the explanation below but try to figure it out yourself. Here is what happens when you run it: $ perl -lne '(1x$_) =~ /^(11+?)\1+$/ && print "$_ is composi
è¤æ°ã®æ£è¦è¡¨ç¾å¼ã§æååãããã¼ã¯ã³ãåãåºããããã¨ãããããããã以ä¸ã®ã³ã¼ãã¯åããªããç¡éã«ã¼ãã«ãªã£ã¦ãã¾ãã #!perl -w # THIS DOES NOT WORK!!! use 5.10.0; use strict; use utf8; my $s = 'foo bar baz FOO BAR BAZ'; while( 1 ) { if( $s =~ /\b (f..) \b/xmsig) { # first matching expression say $1; } elsif( $s =~ /\b (b..) \b/xmsig) { # second matching expression say $1; } else { die 'finished'; } } ããã¯[twitter:@akajiro]ããã¨[twitter:@hio]ããã«æãã¦ããã£ãçµæã解
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}