<?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>Pario TechnoBlob &#187; regex</title>
	<atom:link href="http://pario.no/tag/regex/feed/" rel="self" type="application/rss+xml" />
	<link>http://pario.no</link>
	<description>A cronological documentation test project, nothing serious, really!</description>
	<lastBuildDate>Thu, 26 Apr 2012 08:18:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Grep recursively through subdirectories</title>
		<link>http://pario.no/2007/11/01/grep-recursively-through-subdirectories/</link>
		<comments>http://pario.no/2007/11/01/grep-recursively-through-subdirectories/#comments</comments>
		<pubDate>Thu, 01 Nov 2007 13:54:16 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[grep]]></category>
		<category><![CDATA[regex]]></category>

		<guid isPermaLink="false">http://pario.no/2007/11/01/grep-recursively-through-subdirectories/</guid>
		<description><![CDATA[grep recursively through subdirectories for files that match a specific pattern: grep -l -r –include=*.doc regex * The equivalent command unsing find: find . -name ‘*.doc’ -exec grep -l regex \{\} \; The option after grep is the lowercase letter L, not the number 1). Remove the -l to see the actual matches instead of [...]]]></description>
			<content:encoded><![CDATA[<p>grep recursively through subdirectories for files that match a specific pattern:</p>
<pre>
grep -l -r –include=*.doc regex *</pre>
</p>
<p>The equivalent command unsing find:</p>
<pre>
find . -name ‘*.doc’ -exec grep -l regex \{\} \;</pre>
</p>
<p>The option after grep is the lowercase letter L, not the number 1).<br />
Remove the -l to see the actual matches instead of the file names.</p>
<script type="text/javascript">var wordpress_toolbar_urls = [];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMDcvMTEvMDEvZ3JlcC1yZWN1cnNpdmVseS10aHJvdWdoLXN1YmRpcmVjdG9yaWVzLzx3cHRiPkdyZXAgcmVjdXJzaXZlbHkgdGhyb3VnaCBzdWJkaXJlY3Rvcmllczx3cHRiPmh0dHA6Ly9wYXJpby5ubzx3cHRiPlBhcmlvIFRlY2hub0Jsb2I%3D";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2007/11/01/grep-recursively-through-subdirectories/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>regex &#8211;make option</title>
		<link>http://pario.no/2007/07/02/regex-make-option/</link>
		<comments>http://pario.no/2007/07/02/regex-make-option/#comments</comments>
		<pubDate>Mon, 02 Jul 2007 22:02:53 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[regex]]></category>
		<category><![CDATA[txt2regex]]></category>

		<guid isPermaLink="false">http://hhj.no/wordpress/2007/07/02/regex-make-option/</guid>
		<description><![CDATA[Get a ready regex The &#8211;make option is described by its author as &#8220;a remedy for headaches.&#8221; It outputs a regexp for one of several common patterns that are given as arguments, as listed in table. List of ready regexps available in txt2regex Argument Description date This argument matches dates in mm/dd/yyyy format, from 00/00/0000 [...]]]></description>
			<content:encoded><![CDATA[<p><a title="ready" name="ready"></a><span class="smalltitle">Get a ready regex</span></p>
<p>The <strong>&#8211;make</strong> option is described by its author as &#8220;a remedy for headaches.&#8221; It outputs a regexp for one of several common patterns that are given as arguments, as listed in table<strong>.</strong></p>
<p><strong>List of ready regexps available in txt2regex</strong></p>
<table class="data-table-1" summary="Table showing a list of ready regexps available in txt2regex" border="1" cellpadding="0" cellspacing="0" width="572">
<tr>
<th scope="col" align="left">Argument</th>
<th scope="col" align="left">Description</th>
</tr>
<tr>
<td>date</td>
<td>This argument matches dates in mm/dd/yyyy format, from 00/00/0000 to 99/99/9999.</td>
</tr>
<tr>
<td>date2</td>
<td>This argument matches dates in mm/dd/yyyy format, from 00/00/1000 to 19/39/2999.</td>
</tr>
<tr>
<td>date3</td>
<td>This argument matches dates in mm/dd/yyyy format, from 00/00/1000 to 12/31/2999.</td>
</tr>
<tr>
<td>hour</td>
<td>This argument matches time in hh:mm format, from             00:00 to 99:99.</td>
</tr>
<tr>
<td>hour2</td>
<td>This argument matches time in hh:mm format, from             00:00 to 29:59.</td>
</tr>
<tr>
<td>hour3</td>
<td>This argument matches time in hh:mm format, from             00:00 to 23:59.</td>
</tr>
<tr>
<td>number</td>
<td>This argument matches any positive or negative integer.</td>
</tr>
<tr>
<td>number2</td>
<td>This argument matches any positive or negative integer with an optional             floating-point value.</td>
</tr>
<tr>
<td>number3</td>
<td>This argument matches any positive or negative integer with optional commas             and an optional floating-point value.</td>
</tr>
</table>
<p>For example, you can use this to get a ready regexp for any valid hour in         military time, as shown in listing.</p>
<p><strong>Listing. Getting a date regexp with txt2regex</strong></p>
<pre class="displaycode">
$ <span class="boldcode">txt2regex --make hour3</span>
RegEx perl    : ([01][0-9]|2[0123]):[012345][0-9]
RegEx php     : ([01][0-9]|2[0123]):[012345][0-9]
RegEx postgres: ([01][0-9]|2[0123]):[012345][0-9]
RegEx python  : ([01][0-9]|2[0123]):[012345][0-9]
RegEx sed     : ([01][0-9]|2[0123]):[012345][0-9]
RegEx vim     : ([01][0-9]|2[0123]):[012345][0-9]

$</pre>
<script type="text/javascript">var wordpress_toolbar_urls = [];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMDcvMDcvMDIvcmVnZXgtbWFrZS1vcHRpb24vPHdwdGI%2BcmVnZXggJiM4MjExO21ha2Ugb3B0aW9uPHdwdGI%2BaHR0cDovL3BhcmlvLm5vPHdwdGI%2BUGFyaW8gVGVjaG5vQmxvYg%3D%3D";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2007/07/02/regex-make-option/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

