regex corrected for function