Stop on first regexp match