<br><br><div class="gmail_quote">On Mon, Mar 3, 2008 at 3:15 PM, Patrick R. Michaud &lt;<a href="mailto:pmichaud@pobox.com">pmichaud@pobox.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">On Mon, Mar 03, 2008 at 11:46:53AM +0100, Roman wrote:<br>
&gt; &nbsp; &nbsp;I don&#39;t want to use captcha, I want to ignore entries containg strings<br>
&gt; &nbsp; &nbsp;used by spammers, particularly &quot;&lt;a href=&quot; and &quot;[url=&quot;. Perhaps &quot;match&quot; or<br>
&gt; &nbsp; &nbsp;&quot;if&quot; parameters of (:template:) directive could solve it but I haven&#39;t<br>
&gt; &nbsp; &nbsp;found proper syntax. Has anyone been successful with this?<br>
<br>
</div></div>Try<br>
<br>
 &nbsp; &nbsp;(:template require &lt;field&gt; match=-&quot;[url=&quot; :)<br>
<br>
where &lt;field&gt; is the input form field you want to check for &quot;[url=&quot;.<br>
<font color="#888888"><br></font></blockquote></div><br>-&quot;[url=&quot; as a value of match parameter produces warning: &quot;preg_match(): Compilation failed: missing terminating ] for character class at offset 10 in pmform.php on line 98&quot;<br>
<br>After several attempts I found this:<br>1. It looks that match parameter does not match substring but entire content of input field. The following works but only if href is the only text in &lt;field&gt;.<br><br>&nbsp;(:template require &lt;field&gt; match=-href :)<br>
<br>2. Match does not accept quotes.<br><br>&nbsp;(:template require &lt;field&gt; match=-&quot;href&quot; :) does not work even if href is the only text of &lt;field&gt;.<br><br>Roman<br><br><br>