Add -r option for setting up template matching regexp. Replacing -e option.