Either break _before_ `&&` or break at `.matches`? Also, since this will be called a few times, extract the regex out into a constant `Pattern` and use a Matcher.