Skip to content

Instantly share code, notes, and snippets.

@chrisdolan
Created July 21, 2011 01:36
Show Gist options
  • Select an option

  • Save chrisdolan/1096327 to your computer and use it in GitHub Desktop.

Select an option

Save chrisdolan/1096327 to your computer and use it in GitHub Desktop.
string regex without qr//
$rx="(?^i:(fo+))"; print "fooooobar" =~ $rx;
$rx="(?^i:(fo+))"; $qrx = qr/$rx/; print "fooooobar" =~ $qrx';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment