Is there a way to loop through all backreferences in a regex replace scenario? To better understand what I am asking for:
Given you have the following text
Item 1, Item 2, Item 3
When you have a regex that matches an arbitrary number of items like
(([\w \d]+),?)*
Then you want the result to be something along the lines
<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
Basically I'm searching for the right pattern in the Replace with field e.g. in notepad++ or whatever editor that supports extended regex stuff:
Is that even possible?
` manually, the rest is trivial. What you want here is the job of a templating engine. Regex is not complex enough to do this, I'm afraid (_and it's too complex already, as is_)
– Sergio Tulentsev Mar 05 '18 at 12:10