More accurate regular expressions