<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Advanced Regular Expressions: Some Tools and an Example</title>
	<atom:link href="http://www.laneolson.ca/2010/02/09/advanced-regular-expressions-some-tools-and-an-example/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.laneolson.ca/2010/02/09/advanced-regular-expressions-some-tools-and-an-example/</link>
	<description></description>
	<lastBuildDate>Thu, 06 Jan 2011 20:30:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Adam</title>
		<link>http://www.laneolson.ca/2010/02/09/advanced-regular-expressions-some-tools-and-an-example/comment-page-1/#comment-2618</link>
		<dc:creator>Adam</dc:creator>
		<pubDate>Tue, 15 Jun 2010 08:34:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.laneolson.ca/?p=151#comment-2618</guid>
		<description>Thank you so much for this post, i digg the way you explain stuff, before regex was a mystery to me! Looking forward to see more tutorials from you!</description>
		<content:encoded><![CDATA[<p>Thank you so much for this post, i digg the way you explain stuff, before regex was a mystery to me! Looking forward to see more tutorials from you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lane</title>
		<link>http://www.laneolson.ca/2010/02/09/advanced-regular-expressions-some-tools-and-an-example/comment-page-1/#comment-1788</link>
		<dc:creator>Lane</dc:creator>
		<pubDate>Wed, 10 Feb 2010 15:34:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.laneolson.ca/?p=151#comment-1788</guid>
		<description>Hi David,

I did use the field extractor in Splunk 3, but haven&#039;t tried it in Splunk 4 yet.  In Splunk 3 it was easier for me to just write the regex because there were instances where I couldn&#039;t get it to pick up a specific value in my Windows 2008 events.  I&#039;ll have to try it out and version 4, it will be nice if I can manually modify and test the regex it generates.  I agree that the regex in my example is somewhat difficult.  I need it to capture IP addresses and ignore prefixes (like www and subdomain names) but still capture domain suffixes (like .com and .ab.ca) so that is where most of the complexity comes in.  I&#039;m positive there are other, more simplified, regexes that will do the same job.  As the old saying goes... there&#039;s more than one way to skin a cat. ;)

Thanks for the tip!  I&#039;m going to go check out the field extractor.</description>
		<content:encoded><![CDATA[<p>Hi David,</p>
<p>I did use the field extractor in Splunk 3, but haven&#8217;t tried it in Splunk 4 yet.  In Splunk 3 it was easier for me to just write the regex because there were instances where I couldn&#8217;t get it to pick up a specific value in my Windows 2008 events.  I&#8217;ll have to try it out and version 4, it will be nice if I can manually modify and test the regex it generates.  I agree that the regex in my example is somewhat difficult.  I need it to capture IP addresses and ignore prefixes (like www and subdomain names) but still capture domain suffixes (like .com and .ab.ca) so that is where most of the complexity comes in.  I&#8217;m positive there are other, more simplified, regexes that will do the same job.  As the old saying goes&#8230; there&#8217;s more than one way to skin a cat. <img src='http://www.laneolson.ca/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Thanks for the tip!  I&#8217;m going to go check out the field extractor.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://www.laneolson.ca/2010/02/09/advanced-regular-expressions-some-tools-and-an-example/comment-page-1/#comment-1787</link>
		<dc:creator>David</dc:creator>
		<pubDate>Wed, 10 Feb 2010 15:18:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.laneolson.ca/?p=151#comment-1787</guid>
		<description>Have you tried the interactive field extractor in Splunk.  You give it examples of values you want to extract and it generates the regex.  It works for a lot of common regex cases and you can provide counter examples when it gets things wrong.  In your example, which is somewhat difficult, it didn&#039;t go a great job --  (?i)/www\.(?[^\.]*)(?=\.)

But that same tool allows you to edit the regex right there and fix it up, so you can see how it extracted in your data on hundreds of examples, or tens of thousands if you hit the &#039;test&#039; button.</description>
		<content:encoded><![CDATA[<p>Have you tried the interactive field extractor in Splunk.  You give it examples of values you want to extract and it generates the regex.  It works for a lot of common regex cases and you can provide counter examples when it gets things wrong.  In your example, which is somewhat difficult, it didn&#8217;t go a great job &#8212;  (?i)/www\.(?[^\.]*)(?=\.)</p>
<p>But that same tool allows you to edit the regex right there and fix it up, so you can see how it extracted in your data on hundreds of examples, or tens of thousands if you hit the &#8216;test&#8217; button.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

