24: minimize use of regular expressions