Home
Ruby
ActiveRecord
Array
CGI
Class
Collections
Database
Date
Design Patterns
Development
File Directory
GUI
Hash
Language Basics
Method
Network
Number
Rails
Range
Reflection
Statement
String
Threads
Time
Tk
Unit Test
Windows Platform
XML
Regexps Group « Development « Ruby
Ruby
Development
Regexps Group
1.
An unescaped vertical bar(|) matches either the regular expression that precedes it or the regular expression that follows it.
2.
use parentheses to group terms within a regular expression
3.
\1 refers to the match of the first group
4.
unescape HTML
5.
Backslash Sequences in the Substitution