• BTW I figured also if passing pattern to dream function then I would have to specify additional charaters to avoid clash with meta characters

    '%[b][[/b]comment:#%[b]][/b]'

    where [b][[/b] and [b]][/b] represent single characters '[' and ']'