I have searched for a general solution to this but only find answers to peoples specific questions.
Basically, I want to know how to generally use .replace() to replace items in between any kind of characters in a string, eg:
Replace all text in between and inclusive of abc and xyz eg: abc text to be replaced xyz
or replace all text in between and inclusive of <img and />
eg: <img src="image.jpg" />
Can anyone help me out or point me in the direction of a good tute on this?
Thanks! Let me know if I need to clarify more.