Thread
:
How to match a string occurring somewhere between quotation marks
View Single Post
01-22-2025, 02:53 PM
#
8
DiapDealer
Grand Sorcerer
Posts: 28,691
Karma: 205039118
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Try something like:
Code:
“[^”]*\b\Kwere\b(?=.*?”)
As mentioned above, \K restarts the match from that point (basically forgetting what came before). There's very few places it can't be used to get around the no variable-width lookbehind issue.
DiapDealer
View Public Profile
Find More Posts by DiapDealer
Track Posts by DiapDealer via RSS