Download Matching against a regular expression in Scala - Stack Overflow book pdf free download link or read online here in PDF. Read online Matching against a regular expression in Scala - Stack Overflow book pdf free download link book now. All books are in clear copy here, and all files are secure so don't worry about it. This site is like a library, you could find million book here by using search box in the header.
I fairly frequently match strings against regular expressions. In Java: java.util.regex.Pattern.compile ("\w+").matcher ("this_is").matches Ouch. Scala has many alternatives. "\\w+".r.pattern.matcher("this_is").matches "this_is".matches("\\w+") "\\w+".r unapplySeq "this_is" isDefined val R = "\\w+".r; "this_is" match { case R() => true; case _ => false} The first is just as heavy-weight as the ...
Read : Matching against a regular expression in Scala - Stack Overflow pdf book online Select one of servers for direct link: |
---|