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[xxx{xx}x]zz]+++++ -through [xxxxx \
xxxxxx\
xxxxx \
] -end +++[xxxxx [yy zz] {ww} \
xxxxx\
]+++
How to do this with the regular expression...
Thanks !!!