Change 'regex' to regular expressions where used