javascrip tutsplus

JavaScript Regex Cheat Sheet

Successfully working with regular expressions requires you to know what each special character, flag and method does. This is a regular expressions cheat sheet which you can refer to when trying to remember how a method, special character or flag works.Defining a Regular Expression in JavaScriptThere are two ways of defining a regular expression in JavaScript. var rgx = /^(d+)/ — You can use a regular expression literal and enclose the pattern between slashes. This is evaluated at compile time

Already have an account? Log in here

This article is FREE for you...

Create a free account to access all articles and get more of the technical news sent to you by newsletter.

By submitting your email address you agree for Medianic to send you communication by email

Leave a Comment

Scroll to Top