Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
(?msx)^\s*<action\s* (?:name\s*=\s*"(?<name>[^"]+)"\s* |parameter\s*=\s*"(?<parameter>[^"]+)"\s* |path\s*=\s*"(?<path>[^"]+)"\s* |type\s*=\s*"(?<type>[^"]+)"\s* |scope\s*=\s*"(?<scope>[^"]+)"\s* |validate\s*=\s*"(?<validate>[^"]+)"\s* |input\s*=\s*"(?<input>[^"]+)"\s*)+>\s* (?<props>(?:<set-property\s*(?:property\s*=\s*"(?:[^"]*)"\s*|value\s*=\s*"(?:[^"]*)"\s*)+\s*\/>\s*)*) (?<forwards>(?:<forward\s*.*?\/>\s*)*)<\/\s*action\s*>
/
g

Description

no description available

Submitted by anonymous - 7 years ago