Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
(&mdash;)(?!.*\&mdash;).*
/

Description

This regexp selected random last symbol in string.

Submitted by Folleah - 9 years ago