Skip to content

Instantly share code, notes, and snippets.

@BanzaiMan
Created April 26, 2010 04:55
Show Gist options
  • Select an option

  • Save BanzaiMan/378988 to your computer and use it in GitHub Desktop.

Select an option

Save BanzaiMan/378988 to your computer and use it in GitHub Desktop.
irb(main):001:0> "a" =~ /?/
SyntaxError: compile error
(irb):1: invalid regular expression; there's no previous pattern, to which '?' would define cardinality at 1: /?/
from (irb):1
from :0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment