Regular Expressions on Strings in JavaScript (String.prototype.search)

Опубликовано: 06 Август 2026
на канале: dcode
1,367
23

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:
https://developer.mozilla.org/en-US/d...

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!