Created
January 17, 2019 04:15
-
-
Save czwen/4a34c93a34961d4df0d559d202205080 to your computer and use it in GitHub Desktop.
版本号正则
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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