second iteration for regex