Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Created·2015-06-01 05:31
Flavor·PCRE (Legacy)

/
^([0-9]:)?([0-9]+[a-zA-Z0-9~.+]+)(-[0-9]+[a-zA-Z0-9~.+]+)?
/
Open regex in editor

Description

This regular expression will match the version string of a debian package

Submitted by Anwar