<?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>Muthuswamy &#187; Swedish</title>
	<atom:link href="http://www.muthuswamy.in/tag/swedish/feed" rel="self" type="application/rss+xml" />
	<link>http://www.muthuswamy.in</link>
	<description>Web Developer</description>
	<lastBuildDate>Fri, 30 Apr 2010 05:55:13 +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>Special characters in Regular Expression</title>
		<link>http://www.muthuswamy.in/139/special-characters-in-regular-expression</link>
		<comments>http://www.muthuswamy.in/139/special-characters-in-regular-expression#comments</comments>
		<pubDate>Sun, 19 Apr 2009 07:34:08 +0000</pubDate>
		<dc:creator>Muthuswamy K</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Regular Expression]]></category>
		<category><![CDATA[Special Characters]]></category>
		<category><![CDATA[Swedish]]></category>

		<guid isPermaLink="false">http://www.muthuswamy.in/?p=139</guid>
		<description><![CDATA[Today I faced a problem with my clients website when I used the regular expression technique that I explained in my post here. The problem raised because his website is in Swedish so the usual character pattern that I used to match was not working.
The pattern matching string used before was: &#60;a [a-zA-Z0-9 /.?_=:"-]*&#62;
But his website used [...]]]></description>
			<content:encoded><![CDATA[<p>Today I faced a problem with my clients website when I used the regular expression technique that I explained in my post <a href="http://www.muthuswamy.in/119/using-css-sliding-window-menu-in-wordpress">here</a>. The problem raised because his website is in Swedish so the usual character pattern that I used to match was not working.</p>
<p>The pattern matching string used before was: &lt;a [a-zA-Z0-9 /.?_=:"-]*&gt;</p>
<p>But his website used characters like <strong>Õ</strong>, <strong>Ä</strong>, <strong>Û</strong>, <strong>é</strong>, and so on&#8230; To solve this problem I introduced another set of hex based pattern matching rule [\xC0-\xFF] This rule actually includes all the special alphabets (uppercase and lowercase).</p>
<p>So the new pattern matching rule for non-english websites will be:<br />
<span class="string">&lt;a [a-zA-Z\xC0-\xFF0-9 /.?_=:"-]*&gt;</span></p>
<p><strong>The tools that helped me today are:</strong></p>
<ul>
<li><a href="http://www.webmonkey.com/reference/Special_Characters">Webmonkey Special Characters Reference</a> &#8211; I was able to get the list of special characters that I need to concentrate and their decimal values.</li>
<li>My Scientific Calculator &#8211; To convert the decimal values to HEX values.</li>
<li><a href="http://gskinner.com/RegExr/desktop/">Free RegEx Testing Tool</a> &#8211; A multi-platform free adobe air regular expression evaluation tool that helped me to test my ideas.</li>
</ul>
<p>This is all for today. Will post my experiences like these often. If you have any comments, please let me know through the comments section below so I can improve this further.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.muthuswamy.in/139/special-characters-in-regular-expression/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
