atomaka.com/_posts/2013-02-02-serious-regular-expressions.md

179 B

layout title tag
post Serious Regular Expressions
humor
$n = '[0-9]';
$reg = '/^[AZ]'.$n.$n.$n.$n.$n.$n.$n.$n.'$/';
if(preg_match($reg, $id)) {
  // ...
}