How to parse with regular expression...

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

I have a command like the following in multiple line with "\" operator:
                -begin [yyy[xxxx]zz] -through [xxxxx \
                xxxxx \
                ] -end [xxxxx [yy zz] \

        And I want to add some contents before and after the bracket [] if
        has the keyword "begin" "end"

        Hence, the results should look like
         -begin +++++[yyy[xxxx]zz]+++++ -through [xxxxx \
                xxxxx \
                ] -end +++[xxxxx [yy zz] \

        How to do this with the regular expression...
        Thanks !!!

Site Timeline