GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Tutorial
  • The JavaScript language
  • Browser: Document, Events, Interfaces
  • Frames and windows
  • Binary data, files
  • Network requests
  • Storing data in the browser
  • Animation
  • Web components
  • Regular expressions

This view

  • Original page
  • New address

GeezerVison is showing javascript.info — Regular expressions

Regular expressions is a powerful way of doing search and replace in strings.

  1. Patterns and flags
  2. Character classes
  3. Unicode: flag "u" and class \p{...}
  4. Anchors: string start ^ and end $
  5. Multiline mode of anchors ^ $, flag "m"
  6. Word boundary: \b
  7. Escaping, special characters
  8. Sets and ranges [...]
  9. Quantifiers +, *, ? and {n}
  10. Greedy and lazy quantifiers
  11. Capturing groups
  12. Backreferences in pattern: \N and \k<name>
  13. Alternation (OR) |
  14. Lookahead and lookbehind
  15. Catastrophic backtracking
  16. Sticky flag "y", searching at position
  17. Methods of RegExp and String
Previous lessonNext lesson
Share
Tutorial map
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.