Class XRegex::XRegex
In: lib/xregex.rb
Parent: Object
Methods
=~    match    new    setopts    ~   
Attributes
:last_match  [R] 
:options  [R] 
:source  [R] 
Public Class methods
new(re, options = '')

XRegexp.new("extended regexp", "options")

 options: c     -> don't check for conflicts
          i,m,x -> inherited from Regexp
Public Instance methods
setopts(options)

options: cimx

 if 'c' is set, a variable will bind to the first $n
 it encounters. I can think of very few reasons to do this,
 but if you want it, it's there
match(string)

xmatchdata = xregex.match(string) var = xmatchdata.var

=~(string)

sets last_match, returns position of match

~(string)