Regular Expressions 101

Community Patterns

1...56789...173

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
(<\?xml[a-zA-Z0-9 .""',?=-]+>[\s]+|[\s]+<\?xml[a-zA-Z0-9 .""',?=-]+>[\s]+)|^[\s]+
/

Description

Selects Xml version and Encoding and whitespaces

Submitted by Edward Coughlan - 9 years ago