Skip to Content
JavaScript and Ajax for the Web, Sixth Edition: Visual QuickStart Guide
book

JavaScript and Ajax for the Web, Sixth Edition: Visual QuickStart Guide

by Tom Negrino, Dori Smith
August 2006
Beginner
512 pages
11h 8m
English
Peachpit Press
Content preview from JavaScript and Ajax for the Web, Sixth Edition: Visual QuickStart Guide

Chapter 8. Forms and Regular Expressions

Regular expressions are an amazingly powerful way to validate and format text strings. Using regular expressions, you can write a line or two of JavaScript code that can accomplish tasks that otherwise would have taken several dozen lines.

A regular expression (often abbreviated as RegExp) is a pattern, written using special symbols, which describes one or more text strings. You use regular expressions to match patterns of text, so that your script can easily recognize and manipulate text. Like an arithmetic expression, you create a regular expression by using operators, in this case operators that work on text, rather than numbers. There are many regular expression operators, and we’ll look at some of the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

You might also like

Javascript for the World Wide Web: Visual Quickstart Guide, Fifth Edition

Javascript for the World Wide Web: Visual Quickstart Guide, Fifth Edition

Tom Negrino, Dori Smith

Publisher Resources

ISBN: 0321430328Purchase book