Created
March 9, 2013 11:46
-
-
Save hokamoto/5123936 to your computer and use it in GitHub Desktop.
lexer test
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
import java.util.regex.Pattern; | |
public class Temp { | |
public static void main(String[] args) { | |
System.out.println(Pattern.compile("^0$|^0^[0-9]+|^[1-9][0-9]*").matcher("0^1").find()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
output: false