<?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; PHP</title>
	<atom:link href="http://www.muthuswamy.in/category/blog-listing/php/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>
		<item>
		<title>Using CSS sliding window menu in Wordpress</title>
		<link>http://www.muthuswamy.in/119/using-css-sliding-window-menu-in-wordpress</link>
		<comments>http://www.muthuswamy.in/119/using-css-sliding-window-menu-in-wordpress#comments</comments>
		<pubDate>Fri, 06 Mar 2009 14:37:00 +0000</pubDate>
		<dc:creator>Muthuswamy K</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[sliding window]]></category>

		<guid isPermaLink="false">http://www.muthuswamy.in/?p=119</guid>
		<description><![CDATA[If you are one among the one who hate IE6 being still alive, you will understand the problem that I am trying to solve here. A sliding window technique is a CSS approach to make the menu items with unusual styling(rounded corners, bite corners, etc,.). This is attained by using 2 images. To know more [...]]]></description>
			<content:encoded><![CDATA[<p>If you are one among the one who hate IE6 being still alive, you will understand the problem that I am trying to solve here. A sliding window technique is a CSS approach to make the menu items with unusual styling(rounded corners, bite corners, etc,.). This is attained by using 2 images. To know more about <strong>CSS sliding window menus</strong> with examples visit <a href="http://www.dynamicdrive.com/style/csslibrary/item/glossy_horizontal_menu/">Dynamic Drive</a>.</p>
<p>This technique requires two levels of markup:<br />
<textarea class="html" cols="60" rows="5" name="code">&lt;li&gt;&lt;a&gt;&lt;span&gt;Content here&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;</textarea></p>
<p>Because of this, you need to add and extra &lt;span&gt;&lt;/span&gt; wrap for your menu content or you can use the &lt;li&gt; and &lt;a&gt; as pairs, but the problem raises in IE6 as IE6 does not support <strong>CSS hover for &lt;li&gt;</strong>. Adding an extra span can be easy for a static site, but in wordpress the pages or categories that are usually used as page items are generated by built-in functions that do no provide options to add the extra &lt;span&gt; tag for versions older than wordpress 2.7. Sadly there are still some people who are using older versions of wordpress, so make your theme suit them all by using this technique.</p>
<p>Here is a simple PHP code that can save you from this problem:<br />
<textarea class="php" cols="60" rows="5" name="code">&lt;?php&lt;br /&gt; $mypagelist = wp_list_pages(&#8216;title_li=&amp;depth=-1&amp;echo=0&#8242; );&lt;br /&gt; $mypagelist = eregi_replace(&#8216;(&lt;a [a-zA-Z0-9 /.?_=:"-]*&gt;)&#8217;,'\1&lt;span&gt;&#8217;,$mypagelist);&lt;br /&gt; $mypagelist = eregi_replace(&#8216;(&lt;/a&gt;)&#8217;,'&lt;/span&gt;\1&#8242;,$mypagelist);&lt;br /&gt; echo $mypagelist;&lt;br /&gt; ?&gt;</textarea></p>
<p>This code will get the page list from the &#8220;<strong>wp_list_pages</strong>&#8221; function and adds the wrapping&lt;span&gt; and &lt;/span&gt; tags and prints then on the page. You can use the same technique for functions like:</p>
<ul>
<li>wp_list_pages</li>
<li>wp_list_categories</li>
<li>wp_list_bookmarks</li>
<li>wp_list_authors</li>
</ul>
<p>Please leave your comments and suggestions related to this topic in the comments section.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.muthuswamy.in/119/using-css-sliding-window-menu-in-wordpress/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
