No need to re-compile regex in every iteration