<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>Freehill Media: What's New</title>
	<atom:link href="http://www.freehillmedia.com/whats_new/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.freehillmedia.com/whats_new</link>
	<description>What's going on at Freehill Media today?</description>
	<pubDate>Tue, 02 Dec 2008 10:50:28 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.5</generator>
	<language>en</language>
			<item>
		<title>Very Simple Regular Expressions (Starting with Numbers)</title>
		<link>http://www.freehillmedia.com/whats_new/2008/11/27/very-simple-regular-expressions-starting-with-numbers/</link>
		<comments>http://www.freehillmedia.com/whats_new/2008/11/27/very-simple-regular-expressions-starting-with-numbers/#comments</comments>
		<pubDate>Thu, 27 Nov 2008 11:06:38 +0000</pubDate>
		<dc:creator>dallasclark</dc:creator>
		
		<category><![CDATA[Technical]]></category>

		<category><![CDATA[expression]]></category>

		<category><![CDATA[numbers]]></category>

		<category><![CDATA[regular]]></category>

		<category><![CDATA[script]]></category>

		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.freehillmedia.com/whats_new/?p=19</guid>
		<description><![CDATA[If you want to validate strings, text, or whatever it may be, validating with Regular Expression is an easy way to determine that the data is valid.  Whether it&#8217;s an application or a web-site, you can validate users&#8217; input to ensure it has met all requirements before continuing, or validate your own data.


^123$

This small [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to validate strings, text, or whatever it may be, validating with Regular Expression is an easy way to determine that the data is valid.  Whether it&#8217;s an application or a web-site, you can validate users&#8217; input to ensure it has met all requirements before continuing, or validate your own data.</p>
<p><span id="more-19"></span></p>
<pre lang="reg">
^123$
</pre>
<p>This small example checks whether the data is simply &#8216;123&#8242;, anything else will fail.  We use the &#8216;^&#8217; symbol to show where the beginning of the data is, and the &#8216;$&#8217; symbol to show where the end of the data is.</p>
<pre lang="reg">
^[0-9]$
</pre>
<p>The example above will test the data to ensure it is a single number between 0 to 9.  &#8216;0&#8242;, &#8216;1&#8242;, &#8216;2&#8242;, &#8216;3&#8242;, and &#8216;9&#8242; are examples of data that will pass the above regular expression.  &#8216;a&#8217;, &#8216;10&#8242;, and &#8216; 1&#8242; are all examples of data that will fail.</p>
<p>So what if we wanted 2 numbers?</p>
<pre lang="reg">
^([0-9]|[0-9][0-9])$
</pre>
<p>The example above will match 0 to 9 or 00 to 99.  The &#8216;|&#8217; symbol simply specifies &#8216;or&#8217; so in affect we have [0-9] for 0 to 9 | [0-9][0-9] for 00 to 99.  Because we are using the &#8216;|&#8217; symbol, we need to wrap brackets around our statement to show where the &#8216;or&#8217; statement begins and where it ends.</p>
<p>Now lets work with time.</p>
<pre lang="reg">
^(1[0-2]|(0?[1-9])):[0-5][0-9]$
</pre>
<p>12 hour format is pretty damn simple now that you know the basics.  The first part &#8216;1[0-2]&#8216; means 1 followed by 0 to 2 (for example 10, 11, 12), &#8216;or&#8217; &#8216;(0*[1-9])&#8217; for 1 to 9 or 01 to 09.  The &#8216;*&#8217; means whatever character before it is optional, so the &#8216;0&#8242; is optional but can only occur once if it was there.</p>
<p>So this will cover 1 to 9, 01 to 09, and 10, 11, 12.  The &#8216;:&#8217; symbol is exactly that, and the last two parts &#8216;[0-5][0-9]&#8216; means 00 to 59.  &#8216;1:15&#8242;, &#8216;9:59&#8242;, and &#8216;12:39&#8242; will all pass, but &#8216;00:38&#8242;, &#8216;13:32&#8242;, and &#8216;3:83&#8242; will all fail.</p>
<p>I&#8217;m on a quest to make the ultimate regular expression for date and time, but there&#8217;s no use giving you the whole thing without first telling you how to get there.  Keep an eye on my blog for more posts to come.</p>
<p>I must also note that the above and future examples are Perl-derivative regular expressions. Java, JavaScript, PCRE, Python, Ruby, Microsoft’s .NET Framework, and the W3C’s XML Schema all use regular expression syntax similar to Perl’s. Some languages and tools such as PHP support multiple regular expression flavours.</p>
<p>Resources<br />
* <a href="https://developer.mozilla.org/En/Core_JavaScript_1.5_Reference:Global_Objects:RegExp" target="_blank">RegExp - Mozilla Developer Center</a><br />
* <a href="http://en.wikipedia.org/wiki/Regular_expression" target="_blank">Regular Expression - Wikipedia</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.freehillmedia.com/whats_new/2008/11/27/very-simple-regular-expressions-starting-with-numbers/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Things are getting busy towards the festive season.</title>
		<link>http://www.freehillmedia.com/whats_new/2008/11/27/things-are-getting-busy-towards-the-festive-season/</link>
		<comments>http://www.freehillmedia.com/whats_new/2008/11/27/things-are-getting-busy-towards-the-festive-season/#comments</comments>
		<pubDate>Thu, 27 Nov 2008 10:06:09 +0000</pubDate>
		<dc:creator>dallasclark</dc:creator>
		
		<category><![CDATA[Freehill Media]]></category>

		<category><![CDATA[busy]]></category>

		<category><![CDATA[email]]></category>

		<category><![CDATA[phone]]></category>

		<guid isPermaLink="false">http://www.freehillmedia.com/whats_new/?p=16</guid>
		<description><![CDATA[We&#8217;re growing and with growth comes a bigger team and possibly a move to a bigger office.  We&#8217;re very welcoming on new clients but very regularly our phone lines are quite impossible to get through.
We suggest you make an online enquiry if you wish to become one of our very many prospect clients or otherwise [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;re growing and with growth comes a bigger team and possibly a move to a bigger office.  We&#8217;re very welcoming on new clients but very regularly our phone lines are quite impossible to get through.</p>
<p>We suggest you make an online enquiry if you wish to become one of our very many prospect clients or otherwise leave a voicemail message if you cannot get through by phone.  We normally call back within 24 hours so rest assure that your enquiry will get answered promptly.</p>
<p>We want to thank you all for your patience, and look forward to a working relationship.</p>
<p>- Freehill Media Management</p>
]]></content:encoded>
			<wfw:commentRss>http://www.freehillmedia.com/whats_new/2008/11/27/things-are-getting-busy-towards-the-festive-season/feed/</wfw:commentRss>
		</item>
		<item>
		<title>We said &#8216;Good Bye&#8217; to our old phone number</title>
		<link>http://www.freehillmedia.com/whats_new/2008/11/20/freehill-media-gets-a-new-phone-number/</link>
		<comments>http://www.freehillmedia.com/whats_new/2008/11/20/freehill-media-gets-a-new-phone-number/#comments</comments>
		<pubDate>Thu, 20 Nov 2008 11:25:11 +0000</pubDate>
		<dc:creator>dallasclark</dc:creator>
		
		<category><![CDATA[Freehill Media]]></category>

		<category><![CDATA[new]]></category>

		<category><![CDATA[number]]></category>

		<category><![CDATA[phone]]></category>

		<guid isPermaLink="false">http://www.freehillmedia.com/whats_new/?p=12</guid>
		<description><![CDATA[Just a quick memo to everyone that our phone number has changed to:
(07) 3040 2892
Please don&#8217;t forget to update our contact details in your Address Books.
]]></description>
			<content:encoded><![CDATA[<p>Just a quick memo to everyone that our phone number has changed to:</p>
<p>(07) 3040 2892</p>
<p>Please don&#8217;t forget to update our contact details in your Address Books.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.freehillmedia.com/whats_new/2008/11/20/freehill-media-gets-a-new-phone-number/feed/</wfw:commentRss>
		</item>
		<item>
		<title>A Redesign for the Freehill Media Site.</title>
		<link>http://www.freehillmedia.com/whats_new/2008/08/02/freehill-media-gets-a-new-design/</link>
		<comments>http://www.freehillmedia.com/whats_new/2008/08/02/freehill-media-gets-a-new-design/#comments</comments>
		<pubDate>Sat, 02 Aug 2008 10:41:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Web Design]]></category>

		<category><![CDATA[brand]]></category>

		<category><![CDATA[design]]></category>

		<category><![CDATA[new]]></category>

		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://www.freehillmedia.com/whats_new/?p=5</guid>
		<description><![CDATA[
Welcome to our brand new, all improved website.  It was very hard putting time aside from our clients&#8217; projects but we did it (out of office hours too).  We are very proud of this new design and exciting look for Freehill Media as we go full-speed ahead into our 2nd year of business.
We&#8217;ve had some [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Freehill Media Website Screenshot" href="http://www.freehillmedia.com/whats_new/wp-content/uploads/2008/07/freehill-media-website-screenshot.jpg" target="_blank"><img class="alignnone size-full wp-image-9" title="Freehill Media Website Screenshot" src="http://www.freehillmedia.com/whats_new/wp-content/uploads/2008/08/freehill-media-website-screenshot-thumbnail.jpg" alt="" width="200" height="180" /></a></p>
<p>Welcome to our brand new, all improved website.  It was very hard putting time aside from our clients&#8217; projects but we did it (out of office hours too).  We are very proud of this new design and exciting look for Freehill Media as we go full-speed ahead into our 2nd year of business.</p>
<p>We&#8217;ve had some great innovations appear from our team over the past year inventing new systems, frameworks and solving complicated issues.  Our newest product <a title="Freedom" href="http://www.freehillmedia.com/web-design/our_products" target="_self">Freedom</a> can be included in any new or existing website.</p>
<p>Cheers to the team for another year ahead !</p>
]]></content:encoded>
			<wfw:commentRss>http://www.freehillmedia.com/whats_new/2008/08/02/freehill-media-gets-a-new-design/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
