Adding regex functions