Matcher m = Pattern.compile(regex).matcher(text); 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