| "test\\".matches(".*" + "\\\\" + " *" + "$") |
| |
| char CR = 0x0d; |
| char LF = 0x0a; |
| String testeols="" + CR + LF + CR + LF + LF; |
| byte[] testconvert = testeols.getBytes("UTF8"); |
| |
| System.out.println(testeols); |
| |
| |':'|'\u0020'|'\u0009'|'\u000C'"; |
| |
| *'='.*$"; |
| |
| String ANY_NONEOL_WHITESPACE = "[ \\t\\f\\x08]*"; |
| String ANY_END = ".*$"; |
| String ONE_PROPERTY_DELIMITER = "[=:]"; |
| |
| String LICENSE_KEY = "^" + ANY_NONEOL_WHITESPACE + "license" + ANY_NONEOL_WHITESPACE + ONE_PROPERTY_DELIMITER + ANY_END; |
| |
| String testString = "license=test"; |
| System.out.println(testString + " " + testString.matches(LICENSE_KEY)); |
| |
| testString = " license = test"; |
| System.out.println(testString + " " + testString.matches(LICENSE_KEY)); |
| |
| testString = " license = test"; |
| System.out.println(testString + " " + testString.matches(LICENSE_KEY)); |
| |
| testString = " license = test"; |
| System.out.println(testString + " " + testString.matches(LICENSE_KEY)); |
| |
| testString = " license = \\\n test"; |
| System.out.println(testString + " " + testString.matches(LICENSE_KEY)); |
| |
| testString = " xx license = test"; |
| System.out.println(testString + " " + testString.matches(LICENSE_KEY)); |
| |
| 1024 * 1024 |
| |
| 2 ^ 3 |
| |
| |
| long x = (Runtime.getRuntime().maxMemory()) / (1024*1024); |
| System.out.println(x); |
| |