>> I don't mind using the regex, but did find its "." behavior confusing. > > That's almost certainly a bug since that regex means "match any single > character." The Java code calls Matcher.matches(), so "." would only match a single character.