Skip to content

Instantly share code, notes, and snippets.

@czwen
Created January 17, 2019 04:15
Show Gist options
  • Select an option

  • Save czwen/4a34c93a34961d4df0d559d202205080 to your computer and use it in GitHub Desktop.

Select an option

Save czwen/4a34c93a34961d4df0d559d202205080 to your computer and use it in GitHub Desktop.
版本号正则
String regex = "^(\\d+\\.)?(\\d+\\.)?(\\d+\\.)?(\\*|\\d+)$";
https://stackoverflow.com/questions/82064/a-regex-for-version-number-parsing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment