regular expression matching with terra