Created
August 5, 2011 20:41
-
-
Save ajkovar/1128465 to your computer and use it in GitHub Desktop.
scala regex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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