Regular Expressions 101

version tag

Open Workspace
  • PCRE (Legacy)
  • Match
0

Regular Expression

/
^[0-9]*(\.[0-9]*)*?(-[^\s]*)?$
/

Description

Verify if the given text is a version tag, like git tags for versions in the git flow method

Submitted by bruno-delfino1995