Skip to content
Advertisement

Tag: quotes

Regex capture first text group within quotes per line

I’m working on writing a simple highlighter and I need to capture the all the text including the quotes, for the first word per line. How can I adjust this to do so? Currently this gets me every group of words within quotes, however i need just the first one. Here are two regex i’ve found capture words within quotes

Advertisement