Learn Java Programming - Regex Boundaries Tutorial

preview_player
Показать описание
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.
Рекомендации по теме
Комментарии
Автор

Your tutorials have been such a great learning experience! Much better presentation and content than other tutorials on YT. Keep up the good work!

MesonoxianVlad
Автор

Wow! I just found your website and content and am surprised that this isn't more popular. It's amazing! I wish I had found this earlier :D

treyshaffer
Автор

dan, We want more tutorials!!!
you are simply put it - amazing!!
never seen anything like this.
WOW!

jacobvolid
Автор

This is fantastic, such WEIRD looking syntax of a regex and I'm actually utilizing it effectively.. not QUITE spoon-fed as if you were actually here with me, but I actually got it figured out I love your methodology of several examples to exemplify different usages like they did when we were kids in school :)

keithscull
Автор

Thank you for this! :) Was wondering...what about serialization and deserialization?

dictiosaurus
Автор

My friend... What happen to you... is everything okay?

nicio
visit shbcf.ru