Alter regex to match expected patterns.