开发者

find and replace a string using regular expression

i need to find

sessionOpen(0, (int *)(&SessionId));

and replace the same 开发者_StackOverflowas follows,

sessionOpen(
\#if USE_MULTIPLE_DB
              0,
\#endif
 (int *)(&SessionId));

how can i achieve this using regular expression search and replace method????


replace sessionOpen\((0), \(int \*\)\(&SessionId\)\);

with sessionOpen(\n#if USE_MULTIPLE_DB $1, #endif\n(int *)(&SessionId))

(I assume you want to capture the zero 0)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜