Regular Expressions (RegEx) Tutorial #13 – Testing a RegEx Pattern

Hey gang, in this RegEx tutorial I’ll show you how we can validate a form field using the regex test method, like so:

/myregex/.test(field_value)

If you need a refresher on JS, check out one of these 2 playlists:

JS for beginners:
https://www.youtube.com/playlist?list=PL4cUxeGkcC9i9Ae2D9Ee1RvylH38dKuET

JS an the DOM:
https://www.youtube.com/playlist?list=PL4cUxeGkcC9gfoKa5la9dsdCNpuey2s-V

DONATE 🙂 – https://www.paypal.me/thenetninja

—– COURSE LINKS:

+ RegEx101 – https://regex101.com/

+ Course files – https://github.com/iamshaunjp/regex-playlist

+ Atom editor – https://atom.io/a

+ CMDER – http://cmder.net/

======== Other Tutorials =========

—– NODE.JS TUTORIALS
https://www.youtube.com/playlist?list=PL4cUxeGkcC9gcy9lrvMJ75z9maRw4byYp

—– MONGODB TUTORIALS
https://www.youtube.com/playlist?list=PL4cUxeGkcC9jpvoYriLI0bY8DOgWZfi6u

—– SUBSCRIBE TO CHANNEL – https://www.youtube.com/channel/UCW5YeuERMmlnqo4oq8vwUpg?sub_confirmation=1

======== Social Links ==========

Twitter – @TheNetNinja – https://twitter.com/thenetninjauk

Patreon – https://www.patreon.com/thenetninja

source https://www.youtube.com/watch?v=vgmwEiT1wzc

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s