Answer the question
In order to leave comments, you need to log in
How to remove the edges of a string with a regular expression?
All the best% time of day%. Given a line. For example, the
Task to throw out and the end with one regular expression. That is, get the output .
Is this possible, and what kind of mask is needed? eval("document.getElementById('jslink')")
eval("
")
document.getElementById('jslink')
Answer the question
In order to leave comments, you need to log in
I would suggest a more correct solution than the option from Stockholm Syndrome
eval\s*\(\s*(?|"([^"\\\\]*(?:\\\\.[^"\\\\]*)*)"|'([^'\\\\]*(?:\\\\.[^'\\\\]*)*)')\s*\)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question