Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
^\s+<span.+lj:user=" ([-\w]{1,15}) ".+<b> ([-\w\s]+) <\/b>.+&nbsp;&mdash;\s ([-\.\w\s]+) <\/div>$
/
gxmu

Description

Simple parser for LiveJournal poll results.

Submitted by dimio - 9 years ago