I
I
Ivan Actovegin2019-04-28 10:56:07
Node.js
Ivan Actovegin, 2019-04-28 10:56:07

How to get text between quotes?

I have a variable with a string and this string has quotes and text between them, how to get this text? (Between quotes)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail Osher, 2019-04-28
@ivanmorda

`a string with "quoted text" in it`.match(/"(.+)"/)[1]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question