1

i need to find

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

and replace the same as follows,

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

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

1

1 Answer 1

1

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)

Sign up to request clarification or add additional context in comments.

2 Comments

Thank u for answer, but i need to add a new line after '#if" and '#endif' bt '\n' is not working ??
when i am trying to replace this string as u told, i got an error as follows, "incompatible line delimiter near index 83396" in eclipse. please help me to solve this problem. ??

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.