Array
University of Oregon

RegExp

Regular Expressions

  • Regular expressions are used for pattern matching in Strings
  • They form a small, separate language that is part of JavaScript and other languages
  • In JavaScript, regular expressions are objects of type RegExp.
  • RegExp objects include a test method, and can be used with String methods (match, replace, search, split)

Learning Regular Expressions

  1. Ch. 9, Eloquent JavaScript (Sections: Regular expressions; Creating a regular expression; Testing for matches; Matching a set of characters.)
  2. RegExp Tutorial (W3Schools).

Reference

Skip to toolbar