Hi, I'm looking to change the text in an element, but I want to keep one of the values in the string the same. Basically I have an "in stock" number generated by the JSP that is dynamic but I want to change the message arounn the numberic value.
For example, I'd like to change "1 left in stock" to "Only 1 Remaining" where "1" is not replaced. I was trying to figure out a way using some kind of regex backreference with text() but I don't think this is possible. Is there another way? Thanks in advance.