Scala: Pattern match on regex
Advertisements The task is to match the comma separator in expression, excluding cases, when comma after digit or space. For such test cases regex must match the comma: "a,b" "a,b,c" "a,b,c,d" "a,b,c,d,e1,1" And for such: "ab" "abc1,1" must not to match. In generally the number of separated by comma elements may be 8-10. The regex… Read More Scala: Pattern match on regex