Adding regex behavior on DomainListener