I forgot that you don't need the regex initial/trailing slashes and you are trying to replace everything except the value so you need to include everything before and after as well.
Thanks for the adjustment. It is a bit better but not yet perfect. It replaces the whole 'var lift page....' bit for only the code I need. But how can I het rid off all the other parts before and after. The output is now:
Not in my test it isn't and I don't know how it could be since .*lift_page = " selects everything before the value and all of that is thrown away when the replace value is just $1
The main things that might be improved in that regex are:
It is possible that "(.*)" might actually select too much since regex is "geedy" by default. Won't happen with the example text you've shown though.
Selecting for " might fail if the author of the page decides to switch to default single quotes instead of double.
Best thing to do is to find a regex testing website, paste the HTML source into it and try out the regex.
Thanks again. I think that I know what is going on why it isn't working. The tekst I quoted before, see this post below, was by clicking on the node and copy the string. BUT when I just look at the node, see picture below, little "Carriage Return" symbols are show (see yellow highlite):
It seems that these carriage returns somehow break the replacement node. I say this because the word "var" in front of "var lift_page" is removed correctly with your supplied regex formula.
See above output of the change node. What do you think?
I can not change the output of the HTML node any better than this: