Changes regexp in trigger