scala programming

SCALA : Finding Patterns in Strings

Reading Time: < 1 minute To determine whether a String contains a regular expression pattern , create a “regex object” by using “.r” method on a string . And then use the pattern with findFirstIn when you’re looking for one match, and findAllIn when looking for all matches. First create a Regex for the pattern you want to search for, in this case, a sequence of one or more numeric Continue Reading