- JavaScript RegExp Tutorial
- JavaScript RegExp - Home
- JavaScript RegExp - Overview
- Brackets
- JavaScript RegExp - [...]
- JavaScript RegExp - [^...]
- JavaScript RegExp - [0-9]
- JavaScript RegExp - [a-z]
- JavaScript RegExp - [A-Z]
- JavaScript RegExp - [a-zA-Z]
- Quantifiers
- JavaScript RegExp - p+
- JavaScript RegExp - p*
- JavaScript RegExp - p?
- JavaScript RegExp - p{N}
- JavaScript RegExp - p{N1,N2}
- JavaScript RegExp - p{N,}
- JavaScript RegExp - p$
- JavaScript RegExp - ^p
- Matching Characters
- JavaScript RegExp - [^a-zA-Z]
- JavaScript RegExp - p.p
- JavaScript RegExp - ^.{2}$
- JavaScript RegExp - <b>(.*)</b>
- JavaScript RegExp - p(hp)*
- Literal Characters
- JavaScript RegExp - Alphanumeric
- JavaScript RegExp - \0
- JavaScript RegExp - \t
- JavaScript RegExp - \n
- JavaScript RegExp - \v
- JavaScript RegExp - \f
- JavaScript RegExp - \r
- JavaScript RegExp - \xnn
- JavaScript RegExp - \uxxxx
- Meta Characters
- JavaScript RegExp - .
- JavaScript RegExp - \s
- JavaScript RegExp - \S
- JavaScript RegExp - \d
- JavaScript RegExp - \D
- JavaScript RegExp - \w
- JavaScript RegExp - \W
- JavaScript RegExp - [aeiou]
- JavaScript RegExp - [^aeiou]
- JavaScript RegExp - (foo|bar|baz)
- Modifiers
- JavaScript RegExp - i
- JavaScript RegExp - g
- Properties
- JavaScript RegExp - constructor
- JavaScript RegExp - global
- JavaScript RegExp - ignoreCase
- JavaScript RegExp - lastIndex
- JavaScript RegExp - multiline
- JavaScript RegExp - source
- Methods
- JavaScript RegExp - exec()
- JavaScript RegExp - test()
- JavaScript RegExp - toSource()
- JavaScript RegExp - toString()
- JavaScript RegExp Useful Resources
- JavaScript RegExp - Quick Guide
- JavaScript RegExp - Useful Resources
- JavaScript RegExp - Discussion
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
JavaScript RegExp Tutorial
A regular expression is an object that describes a pattern of characters. The JavaScript RegExp class represents regular expressions, and both String and RegExp define methods that use regular expressions to perform powerful pattern-matching and search-and-replace functions on text.
This tutorial will teach you basic and advanced JavaScript RegExp concepts and usage of various methods/properties of JavaScript RegExp in a simple and intuitive way.
Audience
This reference has been prepared for the HTML and JavaScript developers from beginner to expert level.
After completing this tutorial you will find yourself at a moderate level of expertise in knowledge of JavaScript RegExp from where you can take yourself to next levels
Prerequisites
Knowledge of HTML and JavaScript.