I have a simple enough problem. In my unit test I compare expected vs actual output as a String value. Now part of the string is a randomly generated unique ID which causes the test to fail every time. Is there a way I can specify my test to only match part of the actual and ignore text between two points in the string. A function like -
def isMatch(expected : String, actual : String , ignoreFrom : String , ignoreTo : String)
Also, since this is a candidate for pattern matching, could some one point me to a pattern match/regex for Dummies kind of a tutorial?