YanoRyuichi.com/
Wiki
Blog
GitHub
Sandbox
開始行:
* 特定の単語を除外する [#hca99519]
** 12を除外 [#p912171e]
#pr(perl){{
if ("2020-01-31"=~ /^2020-(?!12).+-31/) {
print "OK!\n";
}
# => OK!
}}
#pr(perl){{
if ("2020-12-01"=~ /^2020-(?!12).+-31/) {
print "OK!\n";
}
# =>
}}
** 12と01を除外 [#p90d93d3]
#pr(perl){{
if ("2020-05-31"=~ /^2020-(?!12|01).+-31/) {
print "OK!\n";
}
# => OK!
}}
終了行:
* 特定の単語を除外する [#hca99519]
** 12を除外 [#p912171e]
#pr(perl){{
if ("2020-01-31"=~ /^2020-(?!12).+-31/) {
print "OK!\n";
}
# => OK!
}}
#pr(perl){{
if ("2020-12-01"=~ /^2020-(?!12).+-31/) {
print "OK!\n";
}
# =>
}}
** 12と01を除外 [#p90d93d3]
#pr(perl){{
if ("2020-05-31"=~ /^2020-(?!12|01).+-31/) {
print "OK!\n";
}
# => OK!
}}
ページ名: