Skip to content

Instantly share code, notes, and snippets.

@ralphilius
Created March 4, 2022 06:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ralphilius/d1be02d5ab13ff1ced6e168c505ed3c7 to your computer and use it in GitHub Desktop.
Save ralphilius/d1be02d5ab13ff1ced6e168c505ed3c7 to your computer and use it in GitHub Desktop.
This regular expression will match app versions following the Semantic Versioning scheme greater than or equal to 3.5.0 - https://regex101.com/r/LZBxhe/1
/([3]\.[5]\.([0-9]$|[1-9]\d{1,}))|([3]\.([6-9]|[1-9]\d{1,})\.\d*)|(([4-9]|[1-9]\d{1,})\.\d*\.\d*)/gm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment