Are there any escaped characters in Groovy regexes? It would be nice to write a single backslash instead of 4.
You don't need four of them. Two should be enough. for example to match anything with a backslash.
def file = /C:\geo\file.txt/ assert file =~ /.*\\.*/