modify several regular expressions