Add suport regexp in rule

You can specify regexp in rule between '/'.
Example:
    rule <- #(?i)command# arg1 arg2 ~;
Add test for regexp