Created
March 15, 2017 22:32
-
-
Save emidln/ce2acda43f6e0f79187caaf9aba20a6a to your computer and use it in GitHub Desktop.
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
//static Pattern symbolPat = Pattern.compile("[:]?([\\D&&[^:/]][^:/]*/)?[\\D&&[^:/]][^:/]*"); | |
static Pattern symbolPat = Pattern.compile("[:]?([\\D&&[^/]].*/)?(/|[\\D&&[^/]][^/]*)"); | |
//static Pattern varPat = Pattern.compile("([\\D&&[^:\\.]][^:\\.]*):([\\D&&[^:\\.]][^:\\.]*)"); | |
//static Pattern intPat = Pattern.compile("[-+]?[0-9]+\\.?"); | |
static Pattern intPat = | |
Pattern.compile( | |
"([-+]?)(?:(0)|([1-9][0-9]*)|0[xX]([0-9A-Fa-f]+)|0([0-7]+)|([1-9][0-9]?)[rR]([0-9A-Za-z]+)|0[0-9]+)(N)?"); | |
static Pattern ratioPat = Pattern.compile("([-+]?[0-9]+)/([0-9]+)"); | |
static Pattern floatPat = Pattern.compile("([-+]?[0-9]+(\\.[0-9]*)?([eE][-+]?[0-9]+)?)(M)?"); | |
//static Pattern accessorPat = Pattern.compile("\\.[a-zA-Z_]\\w*"); | |
//static Pattern instanceMemberPat = Pattern.compile("\\.([a-zA-Z_][\\w\\.]*)\\.([a-zA-Z_]\\w*)"); | |
//static Pattern staticMemberPat = Pattern.compile("([a-zA-Z_][\\w\\.]*)\\.([a-zA-Z_]\\w*)"); | |
//static Pattern classNamePat = Pattern.compile("([a-zA-Z_][\\w\\.]*)\\."); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment