Created
February 17, 2015 13:00
-
-
Save pdincau/ea60d1fc7d900a61ae0c to your computer and use it in GitHub Desktop.
separatore string calculator
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
Estrarre separatore string calculator | |
Pattern pattern = Pattern.compile("//(.+?)\n(.+)"); | |
Matcher matcher = pattern.matcher(input); | |
if (matcher.matches()) { | |
System.out.println(matcher.group(1)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment