Regular Expressions 101

Community Patterns

0

Phone numbers

PCRE (PHP <7.3)
PHP
Submitted by anonymous - 8 years ago

Div content

3

Regular Expression
PCRE (PHP <7.3)

/
<div[^>]*>((?:(?:(?!<div[^>]*>|<\/div>).)+|<div[^>]*>(?1)<\/div>)*)<\/div>
/
isg

Description

Loading markdown...
Submitted by mohammadsaleh - 8 years ago