1. Home
  2. Computing & Technology
  3. JavaScript
Stephen Chapman
Stephen's JavaScript Blog

By Stephen Chapman, About.com Guide to JavaScript

Ignore Case and Global

Sunday November 8, 2009
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>

Explore JavaScript
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. JavaScript

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

All rights reserved.