Add support of regexp. Issue #52