Regex means Regular Expression.
It's a pattern-matching language for finding data in text.
This is how you can take a URL & break it down into pieces.
For example:
Most programming languages implement regular expressions, so it's not a feature exclusive to Ruby :)
Hope that helps.