Автор: Sundeep Agarwal
Издательство: Leanpub
Год: 2019
Язык: английский
Формат: pdf (true), djvu
Размер: 10.1 MB
This book will help you learn jаvascript Regular Expressions, a mini-programming language for all sorts of text processing needs. Scripting and automation tasks often need to extract particular portions of text from input data or modify them from one format to another. The book heavily leans on examples to present features of regular expressions one by one. It is recommended that you manually type each example and experiment with them. You should have a good understanding of basic-level programming concepts and prior experience working with jаvascript. Should also know functional programming concepts like map and filter. Exercises are also included to test your understanding.
Regular Expressions is a versatile tool for text processing. You’ll find them included in standard library of most programming languages that are used for scripting purposes. If not, you can usually find a third-party library. Syntax and features of regular expressions vary from language to language. jаvascript’s syntax is similar to that of Perl language, but there are significant feature differences.
The String object in jаvascript supports variety of methods to deal with text. So, what’s so special about regular expressions and why would you need it? For learning and understanding purposes, one can view regular expressions as a mini programming language in itself, specialized for text processing. Parts of a regular expression can be saved for future use, analogous to variables. There are ways to perform AND, OR, NOT conditionals. Operations similar to range and repetition and so on.
Скачать jаvascript RegExp: an example based guide