This chapter introduces you to an important feature of JS: regular expression processing . You use this feature to find and replace text matching a given pattern within a given text stream. The chapter first explains regular expressions as defined in JavaScript. It then shows you how to use RegExp in conjunction with string methods. The latter half of the chapter introduces you to the properties and methods of the RegExp object.
Regular Expressions: An Overview
Regular expressions consist of patterns (along with optional modifiers) used to match character combinations ...