trigger: evaluate and replace regex groups at same time, new format for regex option in triggers (incompatible with version 1.0) (closes #224)
trigger: fix memory leak when allocating a new trigger with several regex