I am trying to get a string in between single quotes from the following document.write('mystring') I have tried the following pattern \'[A-Za-z0-9]+\' but I want the string without the single quote marks. How can I do that?
I am trying to get a string in between single quotes from the following
Share
You may also want to use
\wor even something else to do the capturing unless you are absolutely sure that the string you want to acquire is purely alphanumeric. This also assumes that only apostrophes are used and not quotes.