Tyrannosaurus RegEXp
DRAFT WIP - TODO
Sometimes you want to know if a String contains something and methods like include?
, start_with?
, and end_with?
just aren't cutting it. What you need is something stronger, an ancient force, the King of Beasts:
( Pic - T-Rex )
Tyrannosaurus RegExp!
It's a Match!
( Overview of regex as a matching language, including how to use it like String#[]
, =~
, match
, and ===
with case
)
Maybe One, Maybe More, Maybe Five?
( Overview of *
, +
, ?
, and other variable length signifiers )
Get Ready, Get Set
( Overview of sets [a-z]
and negative sets )
Looking for an Escape
( Overview of escape characters used for sets like \d
)
Beginning and End
( Start and end matchers, as well as line begin and end )
Grouping Up
( How to make a capture group, how to name it, rubular )
Look What We Caught!
( How to use captured input and leverage it later )