Faster regex for each item + Everything in functions