Gday Monks,
I am trying to do a simple substitution in my website. I need to replace everything between 2 form tags (including the tags themselves). This is the code i am trying but it does not seem to work...
s{<FORM(.*?)/FORM>}{replacement text};
The form HTML is split up across multiple lines and there are some tabs in there as well. I think these spaces and tabs are causing the problems because the above statement works if the form tags and everything between them are on one line. It would be fine except the form is too big to be practically put on one line.
Any suggestions?
Thanks.
Cheers for all the replies guys, all sorted.