Regular Expressions 101

Spon⁠sors

Community Library

Community Library Entry

4

Regular ExpressionOpen Workspace

/
<child\s+[^<]*?attr2=[\'\"](?<value>[^<]*?)[\'\"]
/
g

Description
Created·2014-06-24 11:29
Type·Substitution
Flavor·PCRE (Legacy)

Simple regular expression for extracting attribute value of the element in XML-string. Attribute value should be in quotes.

Submitted by Nikita Danilov
Open Workspace