Regex boundaries allow you assert things about where a token can exist in a search string. Let's imagine for a moment that we want to make sure that the first three characters of a string are actually digits followed by a dash(-). We would do this using the caret(^) metacharacter which instructs the regex engine to make sure the token to the right is the first thing in the beginning of a line.
"^(\\d){3}-" · "867-5309" will return TRUE when invoking the .find() method.
На этой странице сайта вы можете посмотреть видео онлайн Learn Java Programming - Regex Boundaries Tutorial длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Daniel Ross 28 Февраль 2016, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 1,538 раз и оно понравилось 25 зрителям. Приятного просмотра!