Regular Expressions 101

Community Patterns

Regular Expression Help!

0

Regular Expression
PCRE (PHP <7.3)

/
(?<=<name>Number of Failed BGPs</name>\n<value>)[^<]+
/

Description

Stuck trying to key of Number of Failed BGPs to return the result in the next '<value> line.

Submitted by anonymous - 10 years ago