Skip to content

Instantly share code, notes, and snippets.

@efleming969
Created May 24, 2009 19:06
Show Gist options
  • Save efleming969/117221 to your computer and use it in GitHub Desktop.
Save efleming969/117221 to your computer and use it in GitHub Desktop.
val uri = "/contacts:1"
val re = """^.*\:(.*)$""".r
val ma = re.findAllIn(uri)
println(ma.groupCount)
ma.subgroups.foreach(println(_))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment