Regular Expressions 101

Community Patterns

get specific value from html tag

5

Regular Expression
PCRE (PHP <7.3)

/
<div[^>]+id\s*=\s*['"]([^'"]+)['"][^>]*>
/
gi

Description

no description available

Submitted by A.ROA - 8 years ago