I am trying to use the expression editor if I can to match a regex but append text to the end of it, whilst at the same time keeping the rest of the text the same way that .replace() does.
I want to use a mixture of .match() and .replace() to match my regex and then add a string on the end, whilst keeping the rest of the non matched text in the expression editor once the regex piece is finished.
Is this possible, or did I not explain that very well?
yeah the regex matches an entire section of html, doing that replaces the html with just the last part, thats why i need it to match() then i can append, replace…replaces it and as its html i would need to use the match as the second part of the .replace()
The example kind of does that right? It is matching on a string then appending without issue. If you can update the example with content that is closer to what you are working with I might be able to do a bit more.
There is also the code as well if an expression is having a hard time.