<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>PersonalBlog &#187; regular expression</title>
	<atom:link href="http://arimita.web.id/tag/regular-expression/feed/" rel="self" type="application/rss+xml" />
	<link>http://arimita.web.id</link>
	<description>Just another personal weblog</description>
	<lastBuildDate>Mon, 19 Jul 2010 08:31:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Regular Expressions</title>
		<link>http://arimita.web.id/2010/06/regular-expressions/</link>
		<comments>http://arimita.web.id/2010/06/regular-expressions/#comments</comments>
		<pubDate>Tue, 15 Jun 2010 06:43:55 +0000</pubDate>
		<dc:creator>mythworks</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[regexp]]></category>
		<category><![CDATA[regular expression]]></category>

		<guid isPermaLink="false">http://arimita.web.id/?p=228</guid>
		<description><![CDATA[A regular expression describes a set of strings. A regular expressions for the REGEXP operator may use any of the following special characters and constructs:

.     match any character (including carriage return and new line)

SELECT function_name
FROM `functions`
WHERE function_name
REGEXP 'anchor..'


^     match the beginning of a string

SELECT function_name
FROM `functions`
WHERE function_name
REGEXP [...]]]></description>
			<content:encoded><![CDATA[<p>A regular expression describes a set of strings. A regular expressions for the REGEXP operator may use any of the following special characters and constructs:</p>
<ul>
<li><strong>.</strong>     match any character (including carriage return and new line)
<pre class="brush: sql;">
SELECT function_name
FROM `functions`
WHERE function_name
REGEXP 'anchor..'
</pre>
</li>
<li><strong>^</strong>     match the beginning of a string
<pre class="brush: sql;">
SELECT function_name
FROM `functions`
WHERE function_name
REGEXP '^a';
</pre>
</li>
<li><strong>$</strong>	    match the end of a string
<pre class="brush: sql;">
SELECT function_name
FROM `functions`
WHERE function_description
REGEXP 't$';
</pre>
</li>
<li><strong>[characters]</strong>	    match any characters or using range
<pre class="brush: sql;">
SELECT function_name
FROM `functions`
WHERE function_name
REGEXP '^[a-d]';
</pre>
</li>
</ul>
<p>Still using function table, let’s see the other developing using regex.<br />
To view function_name which has 4 characters:</p>
<pre class="brush: sql;">
SELECT function_name
FROM `functions`
WHERE function_name
REGEXP '^....$';
</pre>
<p>Or we can write like this:</p>
<pre class="brush: sql;">
SELECT function_name
FROM `functions`
WHERE function_name
REGEXP '^.{4}$';
</pre>
<p>Hmm I think is enough for introduction of REGEXP <img src='http://arimita.web.id/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . </p>
]]></content:encoded>
			<wfw:commentRss>http://arimita.web.id/2010/06/regular-expressions/feed/</wfw:commentRss>
		<slash:comments>52</slash:comments>
		</item>
	</channel>
</rss>

