Created
December 22, 2016 13:56
-
-
Save n1chre/4ca852b34e7b4b238104c2b2b826d449 to your computer and use it in GitHub Desktop.
Regular expresion used for finding doubles in a string
This file contains 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
/** | |
* Regular expression for finding numbers in double format | |
*/ | |
private static final Pattern NUM = Pattern.compile("[-+]?[0-9]*\\.?[0-9]+([eE][-+]?[0-9]+)?"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment