Appendix. Regular expressions
In JavaScript, a regular expression is a JavaScript object that describes a pattern of characters. It’s used to match strings or parts of strings and for search and replace operations. jQuery uses regular expressions extensively for such diverse applications as parsing selector expressions, determining the type of browser in use, and trimming whitespace from text.
The use of regular expressions in JavaScript is an important part of using the language effectively. Regular expressions appear in many of the plugins in this book to test values or to break up strings into their component parts. You should be familiar with their syntax and usage patterns.
More information on, and examples ...
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