© Rehan Zaidi 2017

Rehan Zaidi, JavaScript Essentials for SAP ABAP Developers, 10.1007/978-1-4842-2220-1_5

5. Regular Expressions and String Methods

Rehan Zaidi

(1)Karachi, Pakistan

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 ...

Get JavaScript Essentials for SAP ABAP Developers: A Guide to Mobile and Desktop Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.