I am using VS Code. And I want to select all matches in italics
preceding {:term}
. Unfortunately VS code doesn't support lookbehind yet, so I am content with the first *.
Pattern: \*.+?(?=\*\{\:term\})
Contents:
* *Pivot Row*{:term}
This is another term *Pivot Row*{:term}
* **List**: This is another term *Pivot Row*{:term}
*This* is *another* term repetition *Pivot Row*{:term}
Desired Selected Output:
*Pivot Row
*Pivot Row
*Pivot Row
*Pivot Row
But the following gets selected:
* *Pivot Row
*Pivot Row
* **List**: This is another term *Pivot Row
*This* is *another* term repetition *Pivot Row
Could you please suggest changes to the pattern?
Also, could you please explain why the lazy dot doesn't work?