<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[KillerSites.com Web Design Forums - Regex Expressions.]]></title>
	<link rel="self" href="http://www.killersites.com/forums/feed/atom/topic/2408/"/>
	<updated>2009-11-04T12:40:06Z</updated>
	<generator>PunBB</generator>
	<id>http://www.killersites.com/forums/topic/2408/regex-expressions/</id>
		<entry>
			<title type="html"><![CDATA[Re: Regex Expressions.]]></title>
			<link rel="alternate" href="http://www.killersites.com/forums/post/11851/#p11851"/>
			<content type="html"><![CDATA[<p>Thanks Ben! I kept them as you suggested, and added www. to my php. <img src="http://www.killersites.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[Eric]]></name>
				<uri>http://www.killersites.com/forums/user/7/</uri>
			</author>
			<updated>2009-11-04T12:40:06Z</updated>
			<id>http://www.killersites.com/forums/post/11851/#p11851</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Regex Expressions.]]></title>
			<link rel="alternate" href="http://www.killersites.com/forums/post/11837/#p11837"/>
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>Should I exclude the link=/url= or no?</p></blockquote></div><p>I&#039;d say yes -- it has appeared in my comment spam before. Really depends on your situation though... you could leave it out, wait a bit and see what sort of spam you are getting, and then add additional filters if necessary.</p>]]></content>
			<author>
				<name><![CDATA[falkencreative]]></name>
				<uri>http://www.killersites.com/forums/user/3/</uri>
			</author>
			<updated>2009-11-04T04:41:04Z</updated>
			<id>http://www.killersites.com/forums/post/11837/#p11837</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Regex Expressions.]]></title>
			<link rel="alternate" href="http://www.killersites.com/forums/post/11833/#p11833"/>
			<content type="html"><![CDATA[<p>Amazing!!!! I just coded my own custom validation rule with the regex s**t. But my question still stands. So I now have no http://, www. link=, url= allowed. Should I exclude the link=/url= or no? </p><p>Here is my I got lucky code.... <br />$(document).ready(function(){<br />&nbsp; &nbsp; &nbsp; &nbsp; $.validator.addMethod(&quot;nourl&quot;, <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function(value, element) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return !/http\:\/\/|www\.|link\=|url\=/.test(value);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }, <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;No URL&#039;s&quot;<br />&nbsp; &nbsp; &nbsp; );</p>]]></content>
			<author>
				<name><![CDATA[Eric]]></name>
				<uri>http://www.killersites.com/forums/user/7/</uri>
			</author>
			<updated>2009-11-04T02:17:38Z</updated>
			<id>http://www.killersites.com/forums/post/11833/#p11833</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Regex Expressions.]]></title>
			<link rel="alternate" href="http://www.killersites.com/forums/post/11831/#p11831"/>
			<content type="html"><![CDATA[<p>I am attempting to write a regex expression for my jquery validation. I am attempting to make it match up with what I have cleaning the same textarea in my PHP code. I am using this generator or similar to help me. <a href="http://www.jslab.dk/tools.regex.php" rel="nofollow">http://www.jslab.dk/tools.regex.php</a> When making my expression I want to prevent http:// and www. but in the php it&#039;s preventing link= and url= should I match those instead? Is that BB code or something? Thanks! </p><p>Here are the PHP rules I want to match.<br />if (preg_match(&quot;{link=}&quot;, $comment) || preg_match(&quot;{url=}&quot;, $comment) || preg_match(&quot;{http://}&quot;, $comment))<br />{<br />&nbsp; &nbsp; header( &quot;Location: $errorurl&quot; );<br />&nbsp; &nbsp; exit ;<br />}</p>]]></content>
			<author>
				<name><![CDATA[Eric]]></name>
				<uri>http://www.killersites.com/forums/user/7/</uri>
			</author>
			<updated>2009-11-04T01:47:38Z</updated>
			<id>http://www.killersites.com/forums/post/11831/#p11831</id>
		</entry>
</feed>
