Answer the question
In order to leave comments, you need to log in
Regular expression to search for words in quotes?
"word" " word2
" "word3"
Is there a line like this, how to write a regular expression to extract all words in quotes?
, 3=>'word3');
Answer the question
In order to leave comments, you need to log in
Option 1. We pull out everything that is in quotes of two types, even if there are several words with spaces and numbers:
https://regex101.com/r/LfzdAx/2
Option 2. Similarly, but the results do not need to be pulled out of groups:
https: //regex101.com/r/MhTPOB/1(?<=["'])[^"']+
Well, or here's "[^"\\]+(?:\\.[^"\\]*)*"
an option if screening support via backlash is required.
https://regex101.com/r/d19vTs/1
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question