You won't believe this one easy trick to make your regex work