Ruby RegExp a magical tool for text processing

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

Author(s): Sundeep Agarwal
Publisher: Sundeep Agarwal
Year: 2019

Language: English
Pages: 72
Tags: Ruby, regexp, regular expressions, regular expression ruby, regex, regular expression

Preface
Prerequisites
Acknowledgements
Feedback and Errata
Author info
License
Book version
Why is it needed?
Regexp literal and operators
match? method
Regexp literal reuse and interpolation
Regexp operators
Cheatsheet and Summary
Exercises
Anchors
String anchors
Line anchors
Word anchors
Cheatsheet and Summary
Exercises
Alternation and Grouping
OR conditional
Regexp.union method
Grouping
Regexp.source method
Precedence rules
Cheatsheet and Summary
Exercises
Escaping metacharacters
Regexp.escape method
Escaping delimiter
Cheatsheet and Summary
Exercises
Dot metacharacter and Quantifiers
Dot metacharacter
Greedy quantifiers
Non-greedy quantifiers
Possessive quantifiers
Cheatsheet and Summary
Exercises
Working with matched portions
match method
scan method
regexp global variables
Cheatsheet and Summary
Exercises
Character class
Custom character sets
Character class metacharacters
Escape sequence character sets
Named character sets
Cheatsheet and Summary
Exercises
Groupings and backreferences
Backreferences
Subexpression calls
Non-capturing groups
Named capture groups
Negative backreferences
Cheatsheet and Summary
Exercises
Lookarounds
Negative lookarounds
Positive lookarounds
AND conditional
Variable length lookbehind
Cheatsheet and Summary
Exercises
Modifiers
Cheatsheet and Summary
Exercises
String Encoding
Unicode character sets
\X vs dot metacharacter
Cheatsheet and Summary
Exercises
Miscellaneous
Using hashes
\G anchor
Recursive matching
Substitution in conditional expression
Cheatsheet and Summary
Exercises
Gotchas
Further Reading