Regular Expressions 101

Community Patterns

Community Library Entry

2

Regular Expression
PCRE (PHP <7.3)

%
<\?xml(.+?)\?>
%

Description

How to match the first line of a xml document

Submitted by anonymous - 10 years ago