Added regex functions