Regular Expressions 101

Community Patterns

1...34567...902

Community Library Entry

4

Regular Expression
PCRE (PHP <7.3)

/
^v(\d+\.)?(\d+\.)?(\*|\d+)$
/

Description

Matches version strings.

Submitted by anmols - 9 years ago