Skip to content

Instantly share code, notes, and snippets.

@asonnleitner
Last active October 15, 2021 07:56
Show Gist options
  • Save asonnleitner/340bce8a05e9ee55035e98b41b2f82bb to your computer and use it in GitHub Desktop.
Save asonnleitner/340bce8a05e9ee55035e98b41b2f82bb to your computer and use it in GitHub Desktop.

Regular Expression for Go version

/^((go)([1-9]\d*))(\.(0|[1-9]\d*))?(\.(0|[1-9]\d*))?$/gm

Demo

https://regexr.com/67ijh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment