Moved regex into a closure for better performance