January 2024
Intermediate to advanced
718 pages
20h 15m
English
A regular expression is a pattern that can be matched against a string. It can be a simple pattern, such as the string must contain the sequence of letters “cat,” or the pattern can be complex, such as the string must start with a protocol identifier, followed by two literal forward slashes, followed by…, and so on. This is cool in theory. But what makes regular expressions so powerful is what you can do with them in practice:
Ruby provides built-in support that makes pattern matching, extraction, and substitution ...
Read now
Unlock full access