346347348349350351352353354355356
Runnable bgRun = new Runnable() { @Override public void run() { final Matcher matched = fPattern.match(fSourceText, 0); if( !matched.isMatched() )return; Runnable awtRun = new Runnable() { @Override public void run()
795796797798799800801802803804805
@Override public boolean validate(ValueController value) { Pattern ptrn = Regex.parseWildcard(mask, true, '?', '*', '\\'); String name = value.getName(); return ptrn.match(name, 0).isMatched(); } @Override public String toString() {
706707708709710711712713714715716
8586878889909192939495
private static void testMatch() { try { Pattern ptrn = Regex.parseXMLResource("/org/gocha/gui/highlight/simplelang.xml"); String src = "f //"; Matcher m = ptrn.match(src, 0); if (m.isMatched()) { System.out.println("matched"); Regex.print(m); } else {