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

15 lines
179 B
Markdown
Raw Permalink Normal View History

2023-02-05 21:07:24 -05:00
---
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)) {
// ...
}
```