Pattern p = Pattern.compile(regex); // Compile regex. Matcher m = p.matcher(text); // Associate regex with text, creating a Matcher. m.region(5, text.length()); // Bump start of region five characters forward. m.useAnchoringBounds(false); // Don't let 「^」 et al. match at the region start. m.useTransparentBounds(true); // Let looking constructs see across region edges. ----------------------------------------------------------------------------- Copyright 1997-2024 Jeffrey Friedl