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

14 lines
179 B
Markdown

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