<?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>iBlog random &#187; regex</title>
	<atom:link href="http://blog.zurka.us/tag/regex/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.zurka.us</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 28 May 2013 20:28:47 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.6</generator>
		<item>
		<title>Help me with regular expressions please!</title>
		<link>http://blog.zurka.us/help-me-with-regular-expressions-please/</link>
		<comments>http://blog.zurka.us/help-me-with-regular-expressions-please/#comments</comments>
		<pubDate>Sat, 22 Nov 2008 00:43:53 +0000</pubDate>
		<dc:creator>nasal</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[help]]></category>
		<category><![CDATA[regex]]></category>

		<guid isPermaLink="false">http://blog.zurka.us/?p=715</guid>
		<description><![CDATA[It seems I am too dumb to understand how this works.. no matter how many tutorials I read, I&#8217;m still not able to produce something that is working.. I suck So what I would like to do is this: I have a domain and I would like that everything that comes after it and is [&#8230;]]]></description>
				<content:encoded><![CDATA[<div style="padding-top:15px;padding-right:0px;padding-bottom:0px;padding-left:0px;;" class="linksalpha_widget">
											<iframe
												style="height:25px !important; border:0px solid gray !important; overflow:hidden !important; width:550px !important;" frameborder="0" scrolling="no" allowTransparency="true"
												src="http://www.linksalpha.com/social?blog=iBlog+random&link=http%3A%2F%2Fblog.zurka.us%2Fhelp-me-with-regular-expressions-please%2F&title=Help+me+with+regular+expressions+please%21&desc=It+seems+I+am+too+dumb+to+understand+how+this+works..+no+matter+how+many+tutorials+I+read%2C+I%27m+still+not+able+to+produce+something+that+is+working..+I+suck+%3AD+So+what+I+would+like+to+do+is+this%3A+I+have+a+domain+and+I+would+like+that+everything+that+comes+after+it+and+is+not+preceded+by+a+%3Fget+value&fc=333333&fs=arial&fblname=like&fblref=facebook&fbllang=en_US&fblshow=1&fbsbutton=1&fbsctr=1&fbslang=en&fbsendbutton=1&twbutton=1&twlang=en&twmention=&twrelated1=&twrelated2=&twctr=1&lnkdshow=noshow&lnkdctr=1&buzzbutton=1&buzzlang=en&buzzctr=1&diggbutton=1&diggctr=1&stblbutton=1&stblctr=1&g1button=1&g1ctr=1&g1lang=en-US">
											</iframe>
										</div><p>It seems I am too dumb to understand how this works.. no matter how many tutorials I read, I&#8217;m still not able to produce something that is working.. I suck <img src='http://blog.zurka.us/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>So what I would like to do is this: I have a domain and I would like that everything that comes after it and is not preceded by a ?get value is automatically a nickname and goes to ?user=$1.</p>
<p>What I have now is this:<br />
RewriteRule ^(.*) http://domain.com/?user=$1 [L,nc]<br />
RewriteRule ^([\w-]+)$ ?user=$1</p>
<p>I don&#8217;t understand why I need two lines but one without the other doesn&#8217;t work. And there is more, this works almost fine, except that it works only with letters and numbers but doesn&#8217;t include any special char (like for example a dot .) and that&#8217;s because of the \w which gets letters and numbers. But how do I include \W ? If I put [\w\W] I get an internal server error.. I&#8217;ve run out of ideas.</p>
<p>And something more.. if I rewrite my urls like this (this is another project):</p>
<p>RewriteRule ^artist/(.*)$ ?band=$1</p>
<p>do I need to change all my urls from relative to absolute (from ?something to http://domain.com/?something)? Is there any way to make it another way?</p>
<p>And if you have any super easy regular expressions for dummies, please share it <img src='http://blog.zurka.us/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Thank you!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.zurka.us/help-me-with-regular-expressions-please/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
