simpler regex matching