Skip to content

Instantly share code, notes, and snippets.

@ajkovar
Created August 5, 2011 20:41
Show Gist options
  • Select an option

  • Save ajkovar/1128465 to your computer and use it in GitHub Desktop.

Select an option

Save ajkovar/1128465 to your computer and use it in GitHub Desktop.
scala regex
var r = new Regex("(.*)\\?(.*)")
req.getUri match {
case r(url, params) => // one thing
case _ => // other thing
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment