Added regex dependency
Added functionality