I am a beginner in groovy scripting and I am working on a script which retrieves the the value from DB and need to assert the value that is obtained from the DB. Since the value changes every time I run the script, I was trying with the regular expression which holds the constant value but still I didn't see any luck. Below is the assertion code I have used to assert.
assert findchck.find{it.code ==~ /^FIN.*/}
Please help me what is the right regular expression to be used ?