|
Posted by stratus on May 5, 2005, 6:33 am
Please log in for more thread options
Is there any module can solve the following problem ?
I have a file containing the following in multiple line with "" operator:
-begin [yyy[xxxx]zz] -through [xxxxx
xxxxxx
xxxxx
] -end [xxxxx [yy zz]
xxxxx
]
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
xxxxxx
xxxxx
] -end +++[xxxxx [yy zz]
xxxxx
]+++
|