Learn Java Programming - Regex Boundaries Tutorial

Veröffentlicht am: 28 Februar 2016
auf dem Kanal: Daniel Ross
1,538
25

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.


Auf dieser Seite können Sie das Online-Video Learn Java Programming - Regex Boundaries Tutorial mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Daniel Ross 28 Februar 2016 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 1,538 Mal angesehen und es wurde von 25 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!