Skip to content

Instantly share code, notes, and snippets.

@n1chre
Created December 22, 2016 13:56
Show Gist options
  • Save n1chre/4ca852b34e7b4b238104c2b2b826d449 to your computer and use it in GitHub Desktop.
Save n1chre/4ca852b34e7b4b238104c2b2b826d449 to your computer and use it in GitHub Desktop.
Regular expresion used for finding doubles in a string
/**
* 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