modified the regex for the ABC