0

I have this pcre regex script (?<=group\()(.*)(?=\)) ,how I covert it into javascript regex.

if i have a string group(sum("abc")) then regex should give everything between closing braces of group. like group(sum("abc")) should give me sum("abc")

1 Answer 1

1

Don't use lookbehind:

group\((.*)(?=\))
Sign up to request clarification or add additional context in comments.

2 Comments

but i don't want 'group' word to be included in match
What's the problem, the data you want is in group #1. If it is not what you want, please edit your question and add some testcases. Lookbehind is not supported by javascript.

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.