Saturday, July 27, 2013

Scala Regex

Match Groups

val imageurlpattern = """data-context-item-id="([^"]*)""".r
println((imageurlpattern findFirstMatchIn singleMovieDetail).get.group(1))

No comments:

Post a Comment