Added functions code.
Added regex answers