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

Start and End

Sunday September 28, 2008
By testing for the start and end of the string you can test the entire content.

In the fifth tutorial on "Regular Expressions" we look at the first of the characters that have special meanings in expressions - the ones that allow us to identify the start and end of the text. By specifying that what we want to match includes the start and end of the string we can natch against the entire content - very useful when we want to validate the content.

Start and End
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.