Hi Nicolas,
Thanks for responding, and for updating the code. However, it still doesn't work. First off, you didn't change the values in the xml file. Second, you are certainly right about the format for Joomla 1.7 being different. However, i think that the regex search string that you use for $id is not matching the html code the joomla 1.7 uses for the contact form. I am not a regex expert by any means. But, if "After the message textarea" is selected, the regex you use is:
id="jform_contact_message".{0,200}(<br */>|</p>|</div>)
but if we look at the html code for the contact form,
<dd><textarea name="jform[contact_message]" id="jform_contact_message" cols="50" rows="10" class="required" aria-required="true" required="required"></textarea></dd>
So, I think the issue is that it is not finding the code, because the regex is not formatter correctly the find it. What do you think?
Oh, please correct the values int he xml file that I mentioned the previous post.
(BTW: the code above is not showing up properly in the post. I tried to edit it a few times to get it to show the html tags, but it's not working. sorry.)