JavaScript

  1. Home
  2. Computing & Technology
  3. JavaScript
photo of Stephen Chapman

Stephen's JavaScript Blog

By Stephen Chapman, About.com Guide to JavaScript since 2004

Ignore Case and Global

Sunday September 7, 2008
Regular Expressions can ignore capitals and find all matches

The second tutorial on Regular Expressions covers how to set the expression for global processing and to ignore capitalization.

Even with this most basic use of regular expressions you will be able to do searches for either the first or all occurrences of a text string. You will also be able to decide whether the exact capitalisation you used is important for obtaining a match or whether the capitalisation should be ignored.

Ignore Case and Global

Comments

No comments yet. Leave a Comment

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

Discuss

Community Forum

Explore JavaScript

About.com Special Features

JavaScript

  1. Home
  2. Computing & Technology
  3. JavaScript

©2009 About.com, a part of The New York Times Company.

All rights reserved.