As a regular expression to remove the edge of the line?

Good %framestack%. Given a string. For example,
eval("document.getElementById('jslink')")
The task is to throw eval(" and end ") the same regular expression. That is, to the output document.getElementById('jslink').

Is this possible, and what is the mask necessary?
March 25th 20 at 13:41
2 answers
March 25th 20 at 13:43
Solution
Thank you. Caught in the gap in their knowledge, regexp match and capture group are two different things. - Pink_Bins commented on March 25th 20 at 13:46
March 25th 20 at 13:45
I would suggest a more correct solution than option from @Alvah.Cummera

eval\s*\(\s*(?|"([^"\\\\]*(?:\\\\.[^"\\\\]*)*)"|'([^'\\\\]*(?:\\\\.[^'\\\\]*)*)')\s*\)

Find more questions by tags C#Regular expressions.NET