Mitesh Panchal
Mitesh Panchal

Reputation: 61

how to convert following pcre regex (?<=group\()(.*)(?=\)) to javascript

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")

Upvotes: 0

Views: 236

Answers (1)

Toto
Toto

Reputation: 91385

Don't use lookbehind:

group\((.*)(?=\))

Upvotes: 1

Related Questions