By using the powerful String.prototype.search method in JavaScript, you are able to search a String not only for a basic string-to-string match, but also for a regular expression. This makes it extremely useful for complex searches.
In this video we look at both examples: a simple search and a regular expression search.
Check this out:
[ Ссылка ]
Follow me on Twitter @dcode!
If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
Ещё видео!