0

I have a string like,

(Range:(>"A" OR Range:(>"B" OR Range:(>"AB")

I need to convert it like,

(Range:(>"A") OR Range:(>"B") OR Range:(>"AB"))

please help me out how to identify it with regex.

Thanks in advance

1
  • More info, please. Currently, a simple string search/replace would be sufficient. What is the pattern you're looking for? Commented Sep 20, 2011 at 9:32

2 Answers 2

2

Do you mean something like this?

(\(>"[^"]*")

and replace with

$1)

See it here on Regexr

It searches for (>" followed by anything but quotes and the closing quote. this is stored in $1.

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

1 Comment

Thanks a lot stema. That saves my time
1

Replace the pattern:

/("[^"]*")/g

with:

$1)

Here's a demo on Ideone: http://ideone.com/BfYBK

1 Comment

Thanks a lot Bart. That saves my time

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.