Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to parse with regular expression...

0 views
Skip to first unread message

stratus

unread,
May 4, 2005, 9:38:45 PM5/4/05
to
I have a command like the following in multiple line with "\" operator:
-begin [yyy[xxx{xx}x]zz] -through [xxxxx \
xxxxxx\
xxxxx \
] -end [xxxxx [yy zz] {ww} \
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[xxx{xx}x]zz]+++++ -through [xxxxx \
xxxxxx\
xxxxx \
] -end +++[xxxxx [yy zz] {ww} \
xxxxx\
]+++


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

0 new messages