Haven't grepped for it, but iirc, OptRegexp is not as resilient as just
regexing strings.

This is just feeling, though, don't have access to a machine with source at
the moment. How many modules currently use OptRegexp?
On Aug 20, 2013 12:13 PM, "Luke Imhoff" <notifications@github.com> wrote:

> In modules/auxiliary/scanner/http/scraper.rb:
>
> > @@ -29,7 +29,7 @@ def initialize
> >  		register_options(
> >  			[
> >  				OptString.new('PATH', [ true,  "The test path to the page to analize", '/']),
> > -				OptString.new('REGEX', [ true,  "The regex to use (default regex is a sample to grab page title)", '\<title\>(.*)\<\/title\>']),
> > +				OptRegexp.new('REGEX', [ true,  "The regex to use (default regex is a sample to grab page title)", '\<title\>(.*)\<\/title\>'])
>
> Regexp.escape('<title></title>') # => "<title></title>"
>
> You can get around the embedded / by using the %r sigil:
> %r{<title>(.*)</title>}i
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/rapid7/metasploit-framework/pull/2251/files#r5872653>
> .
>