How to parse ....

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

Threaded View

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 !!!

Re: How to parse ....

Quoted text here. Click to load it

Please stop posting the same thing multiple times!

    Tad McClellan                          SGML consulting                   Perl programming
    Fort Worth, Texas

Re: How to parse ....

stratus wrote:


I have this strangest feeling of deja vu...

             Christopher Mattern

"Which one you figure tracked us?"
"The ugly one, sir."
"...Could you be more specific?"

Site Timeline