Get a text beside a qoute using regex -
this text
"this quote"
the output must be
"this quote"
so getting word beside qoute
so far regex code
"\s*(.*?)\s*"
but getting string inside quote
you can use regex match word next or before double quote:
"\s*\s+|\s+\s*"
your regex "\s*(.*?)\s*"
match text between quotes , optional whitespaces.
Comments
Post a Comment