<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://regexadvice.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>IRegex</title><link>http://regexadvice.com/blogs/royo/default.aspx</link><description>Roy Osherove's &lt;font color=yellow&gt;(?&amp;lt;&lt;/font&gt;thoughts&lt;font color=yellow&gt;&amp;gt;.*)&lt;/font&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2.1 (Build: 60809.935)</generator><item><title>The Regulator now hosted at Regex.osherove.com</title><link>http://regexadvice.com/blogs/royo/archive/2005/01/11/296.aspx</link><pubDate>Tue, 11 Jan 2005 08:29:00 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:296</guid><dc:creator>royo</dc:creator><slash:comments>0</slash:comments><comments>http://regexadvice.com/blogs/royo/comments/296.aspx</comments><wfw:commentRss>http://regexadvice.com/blogs/royo/commentrss.aspx?PostID=296</wfw:commentRss><description>
&lt;p&gt;FYI:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://regex.osherove.com/"&gt;The Regulator &lt;/a&gt;will be hosted from 
now on at &lt;a href="http://regex.osherove.com/"&gt;http://regex.osherove.com/&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;No longer will the fact that my home machine is down mean that The 
Regulator's site will be offline. &lt;/p&gt;
&lt;p&gt;Phew.&lt;/p&gt;
&lt;p&gt;And for the record, I'm working on a new version.&lt;/p&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post:&lt;/strong&gt; &lt;a href = "mailto:?body=Thought you might like this: http://regexadvice.com/blogs/royo/archive/2005/01/11/296.aspx&amp;amp;;subject=The+Regulator+now+hosted+at+Regex.osherove.com" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2005/01/11/296.aspx"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://regexadvice.com/blogs/royo/archive/2005/01/11/296.aspx&amp;amp;;title=The+Regulator+now+hosted+at+Regex.osherove.com" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2005/01/11/296.aspx"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://regexadvice.com/blogs/royo/archive/2005/01/11/296.aspx&amp;amp;;phase=2" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2005/01/11/296.aspx"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://regexadvice.com/blogs/royo/archive/2005/01/11/296.aspx&amp;amp;title=The+Regulator+now+hosted+at+Regex.osherove.com" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2005/01/11/296.aspx"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://regexadvice.com/blogs/royo/archive/2005/01/11/296.aspx&amp;amp;;title=The+Regulator+now+hosted+at+Regex.osherove.com" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2005/01/11/296.aspx"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;;mkt=en-us&amp;amp;;url=http://regexadvice.com/blogs/royo/archive/2005/01/11/296.aspx&amp;amp;;title=The+Regulator+now+hosted+at+Regex.osherove.com&amp;amp;;top=1" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2005/01/11/296.aspx"&gt;live it!&lt;/a&gt;&lt;/div&gt;&lt;img src="http://regexadvice.com/aggbug.aspx?PostID=296" width="1" height="1"&gt;</description><category domain="http://regexadvice.com/blogs/royo/archive/tags/Regex/default.aspx">Regex</category></item><item><title>Q&A - Greedy matching in regular expressions</title><link>http://regexadvice.com/blogs/royo/archive/2005/01/10/295.aspx</link><pubDate>Tue, 11 Jan 2005 00:37:00 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:295</guid><dc:creator>royo</dc:creator><slash:comments>0</slash:comments><comments>http://regexadvice.com/blogs/royo/comments/295.aspx</comments><wfw:commentRss>http://regexadvice.com/blogs/royo/commentrss.aspx?PostID=295</wfw:commentRss><description>
&lt;p&gt;This came in the mail, thought other folks might be interested.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Hi&amp;nbsp;Roy. I&amp;nbsp;need to check a line of html and make the value of 
the style attribute lowercase.&amp;nbsp; I've tried to come up with a regex that 
will work but I keep making the entire line of html lowercase instead of just 
the stuff in the style value.&amp;nbsp; I can't get the match to end with the 
correct quote, instead it goes to the last quote on the line.&amp;nbsp; So something 
like this:&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;[Tag style="&lt;strong&gt;WIDTH&lt;/strong&gt;:20px; color:blue;" 
href="blah.com/PageTWO"] I want to change to this:&lt;br&gt;[Tag 
style="&lt;strong&gt;width&lt;/strong&gt;:20px; color:blue;" 
href="blah.com/PageTWO"]&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;But instead I get this:&lt;br&gt;[Tag style="&lt;strong&gt;width:20px; color:blue;" 
href="blah.com/pagetwo&lt;/strong&gt;"]&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Because the match ends with the end quote of the href.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;br&gt;&lt;em&gt;If you can point me in the right direction (or having something like 
this laying around), I would GREATLY appreciate it.&lt;br&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;u&gt;Answer:&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;It's called "greedy matching" - because it looks for the *last* 
character.&lt;br&gt;Try to add a "?" after the quanitiy specifier (probably '*'). That 
makes the match end on the *first* match.&lt;br&gt;&lt;/p&gt;
&lt;p&gt;For example, given the following string as 
input:&lt;br&gt;&lt;strong&gt;"abcdfgdrbdtargd"&lt;br&gt;&lt;/strong&gt;The following greedy regex 
(greedy by default) will match up until the lasd 
'd':&lt;br&gt;&lt;strong&gt;(.*d)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;However, this regex will find several matches, the first one is 
"abcd":&lt;br&gt;&lt;strong&gt;(.*?d)&lt;/strong&gt;&lt;br&gt;(you can do without the braces if you 
want).&lt;br&gt;&lt;/p&gt;
&lt;p&gt;I'd also suggest adding two good regex mailing list to your arsenal instead 
of sending help messages to various people:&lt;br&gt;&lt;a href="http://groups.yahoo.com/group/dotnetregex/"&gt;http://groups.yahoo.com/group/dotnetregex/&lt;/a&gt;&lt;br&gt;&lt;a href="http://lists.aspadvice.com/SignUp/list.aspx?l=68&amp;amp;c=16"&gt;http://lists.aspadvice.com/SignUp/list.aspx?l=68&amp;amp;c=16&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;There are people there that know a whole lot more than me on regular 
expressions. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post:&lt;/strong&gt; &lt;a href = "mailto:?body=Thought you might like this: http://regexadvice.com/blogs/royo/archive/2005/01/10/295.aspx&amp;amp;;subject=Q%26A+-+Greedy+matching+in+regular+expressions" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2005/01/10/295.aspx"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://regexadvice.com/blogs/royo/archive/2005/01/10/295.aspx&amp;amp;;title=Q%26A+-+Greedy+matching+in+regular+expressions" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2005/01/10/295.aspx"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://regexadvice.com/blogs/royo/archive/2005/01/10/295.aspx&amp;amp;;phase=2" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2005/01/10/295.aspx"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://regexadvice.com/blogs/royo/archive/2005/01/10/295.aspx&amp;amp;title=Q%26A+-+Greedy+matching+in+regular+expressions" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2005/01/10/295.aspx"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://regexadvice.com/blogs/royo/archive/2005/01/10/295.aspx&amp;amp;;title=Q%26A+-+Greedy+matching+in+regular+expressions" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2005/01/10/295.aspx"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;;mkt=en-us&amp;amp;;url=http://regexadvice.com/blogs/royo/archive/2005/01/10/295.aspx&amp;amp;;title=Q%26A+-+Greedy+matching+in+regular+expressions&amp;amp;;top=1" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2005/01/10/295.aspx"&gt;live it!&lt;/a&gt;&lt;/div&gt;&lt;img src="http://regexadvice.com/aggbug.aspx?PostID=295" width="1" height="1"&gt;</description><category domain="http://regexadvice.com/blogs/royo/archive/tags/Regex/default.aspx">Regex</category></item><item><title>Full source for The Regulator released</title><link>http://regexadvice.com/blogs/royo/archive/2005/01/08/294.aspx</link><pubDate>Sat, 08 Jan 2005 06:56:00 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:294</guid><dc:creator>royo</dc:creator><slash:comments>0</slash:comments><comments>http://regexadvice.com/blogs/royo/comments/294.aspx</comments><wfw:commentRss>http://regexadvice.com/blogs/royo/commentrss.aspx?PostID=294</wfw:commentRss><description>
&lt;div&gt;I finally got around to release &lt;a href="http://prdownloads.sourceforge.net/regulator/Regulator203_Src.zip?download"&gt;the 
full source code&lt;/a&gt; for &lt;a href="http://regulator.sf.net"&gt;The Regulator&lt;/a&gt;. Up 
until now the source code was partial and included mostly just the plugins for 
it. Now you get to see what a sloppy coder I really was when I dreamed up this 
thing, and the stages I took from making it from a simple GUI&amp;nbsp; to a 
pluggable architecture of GUI and logical plugins.&lt;/div&gt;
&lt;div&gt;There's lots of code there that I would do differently today. for example, 
the whole threading thing in the GUI I would change to use the &lt;a href="http://weblogs.asp.net/rosherove/articles/BackgroundWorker.aspx"&gt;BackgroudWorker 
&lt;/a&gt;that Juval Lowy wrote. Many more things like that.&lt;/div&gt;
&lt;div&gt;In any case, have fun mocking me :)&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;Note that I use a lot of 3rd party libraries such as &lt;a href="http://www.xtras.net/products/componentonemenusandtoolbarsfordotnet.asp"&gt;ComponentOne's 
&lt;/a&gt;Toolbars and &lt;a href="http://www.syncfusion.com"&gt;Syncfusion's&lt;/a&gt; Edit 
control. You'll need those to be able to compile. (C1's components were free as 
part of the &lt;a href="http://weblogs.asp.net/rosherove/archive/2003/10/02/30109.aspx"&gt;VB 
resource kit &lt;/a&gt;you can download. &lt;a href="http://www.syncfusion.com"&gt;SyncFusion&lt;/a&gt; donated their control. it's not 
free.)&lt;/div&gt;
&lt;div&gt;I'm trying to find time to make a new version. Hope that'll happen 
soon.&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;Why did I decide to release it now? mainly because I got an angry email 
from one of the SourceForge.Net admins asking whether what a complaint from an 
end-user to the site is true; that&amp;nbsp; the project was released without source 
code. I explained that it comes with *partial* source, but if that's what's 
going to make them happy, I'll add the source now. Since I was planning to 
anyway, Just didn't feel very confident about the way the code looks, this 
wasn't an issue.&amp;nbsp; In fact, I welcome this catalyst as an opportunity to 
give more to the community. Sorry it took so long in the first place. 
&lt;/div&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post:&lt;/strong&gt; &lt;a href = "mailto:?body=Thought you might like this: http://regexadvice.com/blogs/royo/archive/2005/01/08/294.aspx&amp;amp;;subject=Full+source+for+The+Regulator+released" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2005/01/08/294.aspx"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://regexadvice.com/blogs/royo/archive/2005/01/08/294.aspx&amp;amp;;title=Full+source+for+The+Regulator+released" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2005/01/08/294.aspx"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://regexadvice.com/blogs/royo/archive/2005/01/08/294.aspx&amp;amp;;phase=2" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2005/01/08/294.aspx"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://regexadvice.com/blogs/royo/archive/2005/01/08/294.aspx&amp;amp;title=Full+source+for+The+Regulator+released" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2005/01/08/294.aspx"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://regexadvice.com/blogs/royo/archive/2005/01/08/294.aspx&amp;amp;;title=Full+source+for+The+Regulator+released" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2005/01/08/294.aspx"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;;mkt=en-us&amp;amp;;url=http://regexadvice.com/blogs/royo/archive/2005/01/08/294.aspx&amp;amp;;title=Full+source+for+The+Regulator+released&amp;amp;;top=1" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2005/01/08/294.aspx"&gt;live it!&lt;/a&gt;&lt;/div&gt;&lt;img src="http://regexadvice.com/aggbug.aspx?PostID=294" width="1" height="1"&gt;</description><category domain="http://regexadvice.com/blogs/royo/archive/tags/Regex/default.aspx">Regex</category><category domain="http://regexadvice.com/blogs/royo/archive/tags/.Net+Original/default.aspx">.Net Original</category></item><item><title>Using Regex to return the first N words in a string</title><link>http://regexadvice.com/blogs/royo/archive/2005/01/07/293.aspx</link><pubDate>Fri, 07 Jan 2005 09:51:00 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:293</guid><dc:creator>royo</dc:creator><slash:comments>2</slash:comments><comments>http://regexadvice.com/blogs/royo/comments/293.aspx</comments><wfw:commentRss>http://regexadvice.com/blogs/royo/commentrss.aspx?PostID=293</wfw:commentRss><description>
&lt;p&gt;&lt;a href="http://www2.kanga.ca/blogs/jperrin/archive/2004/12/29/225.aspx"&gt;Jeff 
Perrin needed a function to return the first N words in a string &lt;/a&gt;(to create 
a small summary or a snippet thingy). He did it using the manual and awkward 
method of parsing the string manually. That method is more error prone and 
usually makes for less readable code. Fortunately, you can use regular 
expressions here quite nicely. Here's a test that makes sure that we get the 
first 4 words in a string and the function "FindFirstWords" that does this very 
easily using a simple regular expression. &lt;/p&gt;
&lt;p&gt;What I'm doing here is that I'm using the expression to find the first 4 
occurrences of text that is composed of alphanumeric text with one or more 
spaces after it. Then I simply iterate over the match I found. The match should 
contain 4 captures inside it - one for each "word" that was found.&lt;/p&gt;
&lt;p&gt;It's not fully tested as you can see. I only wrote one test to see it works 
on this sort of sentence. More tests could and should be added to test other 
cases. In fact, if this were reall TDD, I would have started with a test of an 
empty string, and continued on to test getting only one word, and then two and 
so on.&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"&gt;[&lt;span style="COLOR: maroon"&gt;Test&lt;/span&gt;]&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'"&gt;public&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"&gt; &lt;span style="COLOR: blue"&gt;void&lt;/span&gt; &lt;span style="COLOR: maroon"&gt;TestRegexFindFirstNWords&lt;/span&gt;()&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"&gt;{&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&lt;span style="COLOR: blue"&gt;const&lt;/span&gt; &lt;span style="COLOR: blue"&gt;string&lt;/span&gt; 
&lt;span style="COLOR: maroon"&gt;INPUT&lt;/span&gt; = &lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: 0.5in"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: purple; FONT-FAMILY: 'Courier New'"&gt;"this is word 
four five six seven eight nine ten eleven twelve thirteen!"&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"&gt;;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&lt;span style="COLOR: blue"&gt;const&lt;/span&gt; &lt;span style="COLOR: blue"&gt;int&lt;/span&gt; 
&lt;span style="COLOR: maroon"&gt;NUM_WORDS_TO_RETURN&lt;/span&gt; = 4;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&lt;span style="COLOR: blue"&gt;string&lt;/span&gt; &lt;span style="COLOR: maroon"&gt;output&lt;/span&gt; = &lt;b&gt;&lt;span style="COLOR: maroon"&gt;FindFirstWords&lt;/span&gt;&lt;/b&gt; (&lt;span style="COLOR: maroon"&gt;INPUT&lt;/span&gt;, &lt;span style="COLOR: maroon"&gt;NUM_WORDS_TO_RETURN&lt;/span&gt;);&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&lt;span style="COLOR: blue"&gt;string&lt;/span&gt; &lt;span style="COLOR: maroon"&gt;expectedOutput&lt;/span&gt; = &lt;span style="COLOR: purple"&gt;"this 
is word four "&lt;/span&gt;;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&lt;span style="COLOR: maroon"&gt;Assert&lt;/span&gt;.&lt;span style="COLOR: maroon"&gt;AreEqual&lt;/span&gt;(&lt;span style="COLOR: maroon"&gt;expectedOutput&lt;/span&gt;,&lt;span style="COLOR: maroon"&gt;output&lt;/span&gt;);&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"&gt;}&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'"&gt;private&lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"&gt; &lt;span style="COLOR: blue"&gt;string&lt;/span&gt; &lt;b&gt;&lt;span style="COLOR: maroon"&gt;FindFirstWords&lt;/span&gt;&lt;/b&gt; (&lt;span style="COLOR: blue"&gt;string&lt;/span&gt; &lt;span style="COLOR: maroon"&gt;input&lt;/span&gt;, 
&lt;span style="COLOR: blue"&gt;int&lt;/span&gt; &lt;span style="COLOR: maroon"&gt;howManyToFind&lt;/span&gt;)&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"&gt;{&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&lt;span style="COLOR: blue"&gt;string&lt;/span&gt; &lt;span style="COLOR: maroon"&gt;REGEX&lt;/span&gt; 
= &lt;span style="COLOR: purple"&gt;@"([\w]+\s+){"&lt;/span&gt; + &lt;span style="COLOR: maroon"&gt;howManyToFind&lt;/span&gt; + &lt;span style="COLOR: purple"&gt;"}"&lt;/span&gt;;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&lt;span style="COLOR: maroon"&gt;StringBuilder&lt;/span&gt; &lt;span style="COLOR: maroon"&gt;output&lt;/span&gt; = &lt;span style="COLOR: blue"&gt;new&lt;/span&gt; &lt;span style="COLOR: maroon"&gt;StringBuilder&lt;/span&gt;();&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&lt;span style="COLOR: blue"&gt;foreach&lt;/span&gt; (&lt;span style="COLOR: maroon"&gt;Capture&lt;/span&gt; &lt;span style="COLOR: maroon"&gt;capture&lt;/span&gt; 
&lt;span style="COLOR: blue"&gt;in&lt;/span&gt; &lt;span style="COLOR: maroon"&gt;Regex&lt;/span&gt;.&lt;span style="COLOR: maroon"&gt;Match&lt;/span&gt;(&lt;span style="COLOR: maroon"&gt;input&lt;/span&gt;,&lt;span style="COLOR: maroon"&gt;REGEX&lt;/span&gt;).&lt;span style="COLOR: maroon"&gt;Captures&lt;/span&gt;)&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
{&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&lt;span style="COLOR: maroon"&gt;output&lt;/span&gt;.&lt;span style="COLOR: maroon"&gt;Append&lt;/span&gt;( &lt;span style="COLOR: maroon"&gt;capture&lt;/span&gt;.&lt;span style="COLOR: maroon"&gt;Value&lt;/span&gt;) 
;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
}&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&lt;span style="COLOR: blue"&gt;return&lt;/span&gt; &lt;span style="COLOR: maroon"&gt;output&lt;/span&gt;.&lt;span style="COLOR: maroon"&gt;ToString&lt;/span&gt;();&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"&gt;}&lt;/span&gt;&lt;/p&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post:&lt;/strong&gt; &lt;a href = "mailto:?body=Thought you might like this: http://regexadvice.com/blogs/royo/archive/2005/01/07/293.aspx&amp;amp;;subject=Using+Regex+to+return+the+first+N+words+in+a+string" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2005/01/07/293.aspx"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://regexadvice.com/blogs/royo/archive/2005/01/07/293.aspx&amp;amp;;title=Using+Regex+to+return+the+first+N+words+in+a+string" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2005/01/07/293.aspx"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://regexadvice.com/blogs/royo/archive/2005/01/07/293.aspx&amp;amp;;phase=2" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2005/01/07/293.aspx"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://regexadvice.com/blogs/royo/archive/2005/01/07/293.aspx&amp;amp;title=Using+Regex+to+return+the+first+N+words+in+a+string" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2005/01/07/293.aspx"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://regexadvice.com/blogs/royo/archive/2005/01/07/293.aspx&amp;amp;;title=Using+Regex+to+return+the+first+N+words+in+a+string" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2005/01/07/293.aspx"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;;mkt=en-us&amp;amp;;url=http://regexadvice.com/blogs/royo/archive/2005/01/07/293.aspx&amp;amp;;title=Using+Regex+to+return+the+first+N+words+in+a+string&amp;amp;;top=1" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2005/01/07/293.aspx"&gt;live it!&lt;/a&gt;&lt;/div&gt;&lt;img src="http://regexadvice.com/aggbug.aspx?PostID=293" width="1" height="1"&gt;</description><category domain="http://regexadvice.com/blogs/royo/archive/tags/Regex/default.aspx">Regex</category><category domain="http://regexadvice.com/blogs/royo/archive/tags/.Net+Original/default.aspx">.Net Original</category><category domain="http://regexadvice.com/blogs/royo/archive/tags/Tips+_2600_+Tricks/default.aspx">Tips &amp; Tricks</category></item><item><title>[OT] Some free time coming soon</title><link>http://regexadvice.com/blogs/royo/archive/2004/12/31/292.aspx</link><pubDate>Fri, 31 Dec 2004 08:19:00 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:292</guid><dc:creator>royo</dc:creator><slash:comments>1</slash:comments><comments>http://regexadvice.com/blogs/royo/comments/292.aspx</comments><wfw:commentRss>http://regexadvice.com/blogs/royo/commentrss.aspx?PostID=292</wfw:commentRss><description>I'm finally gonna get some more free time in the near future, so I'll be 
starting work on a newer version of &lt;a href="http://regulator.sf.net"&gt;The 
Regulator&lt;/a&gt;. Stay tuned for more. I'm listening for any cool feature requests 
BTW.
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post:&lt;/strong&gt; &lt;a href = "mailto:?body=Thought you might like this: http://regexadvice.com/blogs/royo/archive/2004/12/31/292.aspx&amp;amp;;subject=%5bOT%5d+Some+free+time+coming+soon" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2004/12/31/292.aspx"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://regexadvice.com/blogs/royo/archive/2004/12/31/292.aspx&amp;amp;;title=%5bOT%5d+Some+free+time+coming+soon" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2004/12/31/292.aspx"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://regexadvice.com/blogs/royo/archive/2004/12/31/292.aspx&amp;amp;;phase=2" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2004/12/31/292.aspx"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://regexadvice.com/blogs/royo/archive/2004/12/31/292.aspx&amp;amp;title=%5bOT%5d+Some+free+time+coming+soon" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2004/12/31/292.aspx"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://regexadvice.com/blogs/royo/archive/2004/12/31/292.aspx&amp;amp;;title=%5bOT%5d+Some+free+time+coming+soon" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2004/12/31/292.aspx"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;;mkt=en-us&amp;amp;;url=http://regexadvice.com/blogs/royo/archive/2004/12/31/292.aspx&amp;amp;;title=%5bOT%5d+Some+free+time+coming+soon&amp;amp;;top=1" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2004/12/31/292.aspx"&gt;live it!&lt;/a&gt;&lt;/div&gt;&lt;img src="http://regexadvice.com/aggbug.aspx?PostID=292" width="1" height="1"&gt;</description><category domain="http://regexadvice.com/blogs/royo/archive/tags/Blogging/default.aspx">Blogging</category><category domain="http://regexadvice.com/blogs/royo/archive/tags/Cool+Tools/default.aspx">Cool Tools</category></item><item><title>The Regulator 2.0.3 - *finally* with a help file!</title><link>http://regexadvice.com/blogs/royo/archive/2004/05/31/291.aspx</link><pubDate>Mon, 31 May 2004 22:30:00 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:291</guid><dc:creator>royo</dc:creator><slash:comments>7</slash:comments><comments>http://regexadvice.com/blogs/royo/comments/291.aspx</comments><wfw:commentRss>http://regexadvice.com/blogs/royo/commentrss.aspx?PostID=291</wfw:commentRss><description>&lt;DIV&gt;It's finally done. I took the time and made a Help file for The Regulator. It's now bundled along with the new version up on SourceForge - &lt;A href="https://sourceforge.net/projects/regulator/"&gt;2.0.3. Go get it&lt;/A&gt;.&amp;nbsp; You can also download just the Help file as a separate zip file is you really want to.&lt;/DIV&gt;
&lt;DIV&gt;The help file also lists some of my Regex articles and other resources. Do you have an article you want to contribute to the Regulator Help file? drop me a line and I'll see if the article fits in content-wise. If so, I'll put it in the next version along with a nice credit in the help file. How's that?&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Mind you - the help integration was the only change in this version. SO if you have version 2.02 the you already have the same functionality - but non of the cool help file tips &amp;amp; tricks! (including keyboard shortcuts...)&amp;nbsp; &lt;/DIV&gt;
&lt;DIV&gt;:)&lt;/DIV&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post:&lt;/strong&gt; &lt;a href = "mailto:?body=Thought you might like this: http://regexadvice.com/blogs/royo/archive/2004/05/31/291.aspx&amp;amp;;subject=The+Regulator+2.0.3+-+*finally*+with+a+help+file!" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2004/05/31/291.aspx"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://regexadvice.com/blogs/royo/archive/2004/05/31/291.aspx&amp;amp;;title=The+Regulator+2.0.3+-+*finally*+with+a+help+file!" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2004/05/31/291.aspx"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://regexadvice.com/blogs/royo/archive/2004/05/31/291.aspx&amp;amp;;phase=2" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2004/05/31/291.aspx"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://regexadvice.com/blogs/royo/archive/2004/05/31/291.aspx&amp;amp;title=The+Regulator+2.0.3+-+*finally*+with+a+help+file!" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2004/05/31/291.aspx"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://regexadvice.com/blogs/royo/archive/2004/05/31/291.aspx&amp;amp;;title=The+Regulator+2.0.3+-+*finally*+with+a+help+file!" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2004/05/31/291.aspx"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;;mkt=en-us&amp;amp;;url=http://regexadvice.com/blogs/royo/archive/2004/05/31/291.aspx&amp;amp;;title=The+Regulator+2.0.3+-+*finally*+with+a+help+file!&amp;amp;;top=1" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2004/05/31/291.aspx"&gt;live it!&lt;/a&gt;&lt;/div&gt;&lt;img src="http://regexadvice.com/aggbug.aspx?PostID=291" width="1" height="1"&gt;</description></item><item><title>Recommended C# Bloggers</title><link>http://regexadvice.com/blogs/royo/archive/2004/05/22/290.aspx</link><pubDate>Sat, 22 May 2004 20:20:00 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:290</guid><dc:creator>royo</dc:creator><slash:comments>13</slash:comments><comments>http://regexadvice.com/blogs/royo/comments/290.aspx</comments><wfw:commentRss>http://regexadvice.com/blogs/royo/commentrss.aspx?PostID=290</wfw:commentRss><description>&lt;DIV&gt;If you've read my blog for a while you'd know that I'm not much for a popularity contest. however, I am most honored to be listed along with these great people in the same place, in what &lt;A href="http://blogs.msdn.com/ericgu/"&gt;Eric Gunnerson &lt;/A&gt;posted as a list of &lt;A href="http://blogs.msdn.com/ericgu/archive/2004/05/22/139564.aspx?Pending=true"&gt;Recommended C# bloggers&lt;/A&gt;. &lt;/DIV&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://www.interact-sw.co.uk/iangblog/" target=_new&gt;&lt;FONT color=#a52a2a&gt;Ian Griffiths &lt;/FONT&gt;&lt;/A&gt;&amp;nbsp; 
&lt;LI&gt;&lt;A href="http://staff.develop.com/candera/weblog2/default.aspx"&gt;&lt;FONT color=#a52a2a&gt;Craig Andera&lt;/FONT&gt;&lt;/A&gt; 
&lt;LI&gt;&lt;A href="http://wesnerm.blogs.com/net_undocumented"&gt;&lt;FONT color=#a52a2a&gt;Wesner Moise&lt;/FONT&gt;&lt;/A&gt; 
&lt;LI&gt;&lt;A class=headermaintitle id=Header1_HeaderTitle href="http://weblogs.asp.net/fbouma/"&gt;&lt;FONT color=#a52a2a&gt;Frans Bouma&lt;/FONT&gt;&lt;/A&gt; 
&lt;LI&gt;&lt;A href="http://www.techieswithcats.com/dotnetguy"&gt;&lt;FONT color=#a52a2a&gt;Brad Wilson&lt;/FONT&gt;&lt;/A&gt; 
&lt;LI&gt;&lt;A href="http://www.iunknown.com/"&gt;&lt;FONT color=#a52a2a&gt;John Lam&lt;/FONT&gt;&lt;/A&gt; 
&lt;LI&gt;&lt;A href="http://staff.newtelligence.net/clemensv/"&gt;Clemens Vasters&lt;/A&gt; 
&lt;LI&gt;&lt;A href="http://www.neward.net/ted/weblog"&gt;&lt;FONT color=#a52a2a&gt;Ted Neward&lt;/FONT&gt;&lt;/A&gt; 
&lt;LI&gt;&lt;SPAN class=description style="COLOR: #666677"&gt;&lt;A href="http://hyperthink.net/blog"&gt;&lt;FONT color=#a52a2a&gt;Steve Maine&lt;/FONT&gt;&lt;/A&gt;&lt;/SPAN&gt; 
&lt;LI&gt;&lt;A href="http://primates.ximian.com/~miguel/all.html"&gt;&lt;FONT color=#a52a2a&gt;Miguel de Icaza&lt;/FONT&gt;&lt;/A&gt; 
&lt;LI&gt;&lt;A href="http://weblogs.asp.net/justin_rogers/Rss.aspx"&gt;&lt;FONT color=#a52a2a&gt;Justin Rogers&lt;/FONT&gt;&lt;/A&gt; 
&lt;LI&gt;&lt;A href="http://www.ingorammer.com/"&gt;&lt;FONT color=#a52a2a&gt;Ingo Rammer&lt;/FONT&gt;&lt;/A&gt; 
&lt;LI&gt;&lt;A href="http://staff.develop.com/nielsb/"&gt;&lt;FONT color=#a52a2a&gt;Niels Berglund&lt;/FONT&gt;&lt;/A&gt; 
&lt;LI&gt;&lt;A href="http://staff.develop.com/richardb/weblog/"&gt;Richard Blewett&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;DIV&gt;At least half of these folks are inside my aggregator, and I 3 names here are not familier to me. Looks like I need to add some subscriptions! I can attest to those that I know that they certainly deserve to be listed as a good source of knowledge.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;The weird thing is that my &lt;A href="http://regexadvice.com/blogs/royo/"&gt;Regex blog &lt;/A&gt;is the one listed over there, and not &lt;A href="http://www.iserializable.com"&gt;my primary weblog&lt;/A&gt;. Quite weird,&amp;nbsp; because I have less than 20 posts on this blog. Still, this is very cool. I know I have'nt been posting much tech stuff in the past few weeks but I promise to get back to that as soon as I have something worth saying.&lt;/DIV&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post:&lt;/strong&gt; &lt;a href = "mailto:?body=Thought you might like this: http://regexadvice.com/blogs/royo/archive/2004/05/22/290.aspx&amp;amp;;subject=Recommended+C%23+Bloggers" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2004/05/22/290.aspx"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://regexadvice.com/blogs/royo/archive/2004/05/22/290.aspx&amp;amp;;title=Recommended+C%23+Bloggers" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2004/05/22/290.aspx"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://regexadvice.com/blogs/royo/archive/2004/05/22/290.aspx&amp;amp;;phase=2" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2004/05/22/290.aspx"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://regexadvice.com/blogs/royo/archive/2004/05/22/290.aspx&amp;amp;title=Recommended+C%23+Bloggers" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2004/05/22/290.aspx"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://regexadvice.com/blogs/royo/archive/2004/05/22/290.aspx&amp;amp;;title=Recommended+C%23+Bloggers" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2004/05/22/290.aspx"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;;mkt=en-us&amp;amp;;url=http://regexadvice.com/blogs/royo/archive/2004/05/22/290.aspx&amp;amp;;title=Recommended+C%23+Bloggers&amp;amp;;top=1" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2004/05/22/290.aspx"&gt;live it!&lt;/a&gt;&lt;/div&gt;&lt;img src="http://regexadvice.com/aggbug.aspx?PostID=290" width="1" height="1"&gt;</description></item><item><title>New version for Regulator</title><link>http://regexadvice.com/blogs/royo/archive/2004/04/30/289.aspx</link><pubDate>Fri, 30 Apr 2004 22:44:00 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:289</guid><dc:creator>royo</dc:creator><slash:comments>0</slash:comments><comments>http://regexadvice.com/blogs/royo/comments/289.aspx</comments><wfw:commentRss>http://regexadvice.com/blogs/royo/commentrss.aspx?PostID=289</wfw:commentRss><description>&lt;DIV&gt;Yeah. I haven't been a good blogger and have not been paying much attention to this blog. It's pretty hard keeping up with two blogs. Harder than I though. I'll try a little more and see where it takes me.&lt;/DIV&gt;
&lt;DIV&gt;The big news about The Regulator is that :&lt;/DIV&gt;
&lt;DIV&gt;1) it moved to &lt;A href="http://regulator.sourceforge.net"&gt;SourceForge&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV&gt;2) A &lt;A href="http://regulator.sourceforge.net"&gt;new version has been re&lt;/A&gt;leased that includes Intellisense, among other things. &lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post:&lt;/strong&gt; &lt;a href = "mailto:?body=Thought you might like this: http://regexadvice.com/blogs/royo/archive/2004/04/30/289.aspx&amp;amp;;subject=New+version+for+Regulator" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2004/04/30/289.aspx"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://regexadvice.com/blogs/royo/archive/2004/04/30/289.aspx&amp;amp;;title=New+version+for+Regulator" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2004/04/30/289.aspx"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://regexadvice.com/blogs/royo/archive/2004/04/30/289.aspx&amp;amp;;phase=2" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2004/04/30/289.aspx"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://regexadvice.com/blogs/royo/archive/2004/04/30/289.aspx&amp;amp;title=New+version+for+Regulator" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2004/04/30/289.aspx"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://regexadvice.com/blogs/royo/archive/2004/04/30/289.aspx&amp;amp;;title=New+version+for+Regulator" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2004/04/30/289.aspx"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;;mkt=en-us&amp;amp;;url=http://regexadvice.com/blogs/royo/archive/2004/04/30/289.aspx&amp;amp;;title=New+version+for+Regulator&amp;amp;;top=1" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2004/04/30/289.aspx"&gt;live it!&lt;/a&gt;&lt;/div&gt;&lt;img src="http://regexadvice.com/aggbug.aspx?PostID=289" width="1" height="1"&gt;</description></item><item><title>Matching a value inside XML tags with an attribute</title><link>http://regexadvice.com/blogs/royo/archive/2004/03/19/288.aspx</link><pubDate>Fri, 19 Mar 2004 11:47:00 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:288</guid><dc:creator>royo</dc:creator><slash:comments>15</slash:comments><comments>http://regexadvice.com/blogs/royo/comments/288.aspx</comments><wfw:commentRss>http://regexadvice.com/blogs/royo/commentrss.aspx?PostID=288</wfw:commentRss><description>&lt;DIV&gt;I was asked how to parse for the value inside an XML tag, containing an attribute of some kind. Here's a simple way:&lt;/DIV&gt;
&lt;DIV&gt;Say you have this as an input:&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&amp;lt;Customer VIP=&amp;#8220;false&amp;#8220;&amp;gt;Danny Glover&amp;lt;/Customer&amp;gt;&lt;/DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;lt;Customer VIP=&amp;#8220;true&amp;#8220;&amp;gt;&lt;STRONG&gt;John Roberts&lt;/STRONG&gt;&amp;lt;/Customer&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;lt;Customer VIP=&amp;#8220;false&amp;#8220;&amp;gt;Eva Gardner&amp;lt;/Customer&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;The value we want eventually is &lt;STRONG&gt;bolded&lt;/STRONG&gt;.&lt;/DIV&gt;
&lt;DIV&gt;it's fairly easy to set up an expression like this. :&lt;/DIV&gt;
&lt;DIV&gt;Fire up The Regulator and put in the input text in the &amp;#8220;input&amp;#8220; field.&lt;/DIV&gt;
&lt;DIV&gt;Then start out writing an expression to matche any XML element:&lt;/DIV&gt;
&lt;DIV&gt;In Regex, each letter usually matches itself, so if we wanted to match the text &amp;#8220;roy&amp;#8220; in an input, we could simply write &amp;#8220;roy&amp;#8220; in the regex and it would match. But some chars are &amp;#8220;special&amp;#8220; chars, part of the regex syntax, so like in any good language, we need to &amp;#8220;escape&amp;#8220; them using a backslash. The &amp;#8220;&amp;lt;&amp;#8220; and &amp;#8220;&amp;gt;&amp;#8220; are a good example of this. to match &amp;#8220;&amp;lt;&amp;#8220; we need to write &amp;#8220;\&amp;lt;&amp;#8220;. THe same for the &amp;#8220;&amp;gt;&amp;#8220; char. So, our expression could start out like this:&lt;/DIV&gt;
&lt;UL&gt;
&lt;LI&gt;\&amp;lt;Customer\sVIP=&amp;#8220;.*&amp;#8220;\&amp;gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;DIV&gt;Some explanation:&lt;/DIV&gt;
&lt;UL&gt;
&lt;LI&gt;\s = one space or a tab&lt;/LI&gt;
&lt;LI&gt;.* = actually two things: &amp;#8220;.&amp;#8220; means &amp;#8220;anything&amp;#8220;, and &amp;#8220;*&amp;#8220; means &amp;#8220;0 or more&amp;#8220;&lt;/LI&gt;
&lt;LI&gt;SO, what I'm actually writing here is: &amp;#8220;Match anything that starts with &amp;#8220;&amp;lt;Customer VIP=&amp;#8220;[anything at any length]&amp;#8220;&amp;gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;DIV&gt;Pressing F5 and running this would match all the XML elements's starting node (you can see the results in the match tree of the regulator.&lt;/DIV&gt;
&lt;DIV&gt;Now we are in the important part: Whatever comes after this match and before the closing node in the actual text we want. We don't really care what it is as long as we can access this information easily. Since we want to match &lt;STRONG&gt;anything at any legth&lt;/STRONG&gt; inside these tags, we can use &amp;#8220;.*&amp;#8220; in there. But, if we want to get back the value in those tags easily in code, we need to put them in a &amp;#8220;group&amp;#8220;. A group is a logical construct that we wrap around parts of our matched text, so that we can later refer to it in code using the Regex object model exposed by the .Net framework.&lt;/DIV&gt;
&lt;DIV&gt;To wrap something in a group we simply put round braces on it:&lt;/DIV&gt;
&lt;UL&gt;
&lt;LI&gt;\&amp;lt;Customer\sVIP=&amp;#8220;.*&amp;#8220;\&amp;gt;&lt;STRONG&gt;&lt;FONT color=#ff0000&gt;(.*)&lt;/FONT&gt;&lt;/STRONG&gt;\&amp;lt;/Customer\&amp;gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;DIV&gt;explanation:&lt;/DIV&gt;
&lt;UL&gt;
&lt;LI&gt;The red part signifies the group I've just created. &lt;/LI&gt;
&lt;LI&gt;The expressoin after the group simply matches the closing tag of the customer node/&lt;/LI&gt;
&lt;LI&gt;To get to the &amp;#8220;meant&amp;#8220;, the group we created, our code might look like this (if we were parsing one line at a time):&lt;/LI&gt;&lt;/UL&gt;
&lt;DIV&gt;&lt;FONT face="Courier New" size=2&gt;&lt;FONT color=#0000ff&gt;string&lt;/FONT&gt; pattern =&amp;#8220;\&amp;lt;Customer\sVIP=&amp;#8220;.*&amp;#8220;\&amp;gt;&lt;STRONG&gt;&lt;FONT color=#ff0000&gt;(.*)&lt;/FONT&gt;&lt;/STRONG&gt;\&amp;lt;/Customer\&amp;gt;&amp;#8220;;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="Courier New" size=2&gt;&lt;FONT color=#0000ff&gt;string&lt;/FONT&gt; input=&amp;#8220;&amp;lt;Customer VIP=&amp;#8220;true&amp;#8220;&amp;gt;&lt;STRONG&gt;John Roberts&lt;/STRONG&gt;&amp;lt;/Customer&amp;gt;&amp;#8220;;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="Courier New" size=2&gt;Match match = Regex.Match(input,pattern);&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="Courier New" size=2&gt;&lt;FONT color=#0000ff&gt;if&lt;/FONT&gt;(match.Success)&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="Courier New" size=2&gt;{&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="Courier New" color=#008000 size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //valueInside should now contain the value &amp;#8220;John Roberts&amp;#8220;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="Courier New" size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; string valueInside = match.Groups[0].Value;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="Courier New" size=2&gt;}&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;It's that easy. If we really wanted to, we could get the group by name. To give the group a name in the expression, put inside the round bracesm before the expression in them, this text: &amp;#8220;?&amp;lt;MyGroupName&amp;gt;&amp;#8221;:&lt;/DIV&gt;
&lt;UL&gt;
&lt;LI&gt;\&amp;lt;Customer\sVIP=&amp;#8220;.*&amp;#8220;\&amp;gt;&lt;STRONG&gt;&lt;FONT color=#ff0000&gt;(?&amp;lt;InnerText&amp;gt;.*)&lt;/FONT&gt;&lt;/STRONG&gt;\&amp;lt;/Customer\&amp;gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;DIV&gt;Now we can access the group like so:&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="Courier New" size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; string valueInside = match.Groups[&amp;#8220;InnerText&amp;#8220;].Value;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Can you see the power in this? I can now divide my text up to as many groups as I want and simply refer to each part I want by name, without having to parse a single string in the conventionaly methods. Groups can even nest inside other groups, but you still get them all by name in just the same way.&lt;/DIV&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post:&lt;/strong&gt; &lt;a href = "mailto:?body=Thought you might like this: http://regexadvice.com/blogs/royo/archive/2004/03/19/288.aspx&amp;amp;;subject=Matching+a+value+inside+XML+tags+with+an+attribute" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2004/03/19/288.aspx"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://regexadvice.com/blogs/royo/archive/2004/03/19/288.aspx&amp;amp;;title=Matching+a+value+inside+XML+tags+with+an+attribute" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2004/03/19/288.aspx"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://regexadvice.com/blogs/royo/archive/2004/03/19/288.aspx&amp;amp;;phase=2" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2004/03/19/288.aspx"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://regexadvice.com/blogs/royo/archive/2004/03/19/288.aspx&amp;amp;title=Matching+a+value+inside+XML+tags+with+an+attribute" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2004/03/19/288.aspx"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://regexadvice.com/blogs/royo/archive/2004/03/19/288.aspx&amp;amp;;title=Matching+a+value+inside+XML+tags+with+an+attribute" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2004/03/19/288.aspx"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;;mkt=en-us&amp;amp;;url=http://regexadvice.com/blogs/royo/archive/2004/03/19/288.aspx&amp;amp;;title=Matching+a+value+inside+XML+tags+with+an+attribute&amp;amp;;top=1" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2004/03/19/288.aspx"&gt;live it!&lt;/a&gt;&lt;/div&gt;&lt;img src="http://regexadvice.com/aggbug.aspx?PostID=288" width="1" height="1"&gt;</description></item><item><title>Running The Regulator on .Net 1.0</title><link>http://regexadvice.com/blogs/royo/archive/2004/03/19/287.aspx</link><pubDate>Fri, 19 Mar 2004 11:16:00 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:287</guid><dc:creator>royo</dc:creator><slash:comments>0</slash:comments><comments>http://regexadvice.com/blogs/royo/comments/287.aspx</comments><wfw:commentRss>http://regexadvice.com/blogs/royo/commentrss.aspx?PostID=287</wfw:commentRss><description>&lt;DIV&gt;Up until now, The Regulator could only run on .Net 1.1. Now you can run it against .Net 1.0 using this config file:&lt;/DIV&gt;
&lt;DIV&gt;&lt;A href="http://royo.is-a-geek.com/regulator.exe.zip" target=_new&gt;&lt;FONT color=#a52a2a&gt;http://royo.is-a-geek.com/regulator.exe.zip&lt;/FONT&gt;&lt;/A&gt; &lt;/DIV&gt;
&lt;DIV&gt;just put it in along with the regulator.exe file and run.&lt;/DIV&gt;
&lt;DIV&gt;I took the config settings from &lt;A href="http://www.sliver.com/dotnet/SnippetCompiler/"&gt;Jeff Key's Snippet Compiler config file&lt;/A&gt;, since he was having the same problem with his users. So, thanks Jeff.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;The config file actually redirects all the main .Net assemblies in v1.1 to word on the v1.0 Assemblies. Pretty cool.&lt;/DIV&gt;
&lt;DIV&gt;If you want to learn more about how this works, you can check out this cool article from early &amp;amp; adopter about running the two frameworks side by side, and redirecting between them:&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;A href="http://www.3leaf.com/resources/articles/sbs.aspx"&gt;Early &amp;amp; Adopter on: Running Multiple Versions of the Framework Side-by-Side&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV&gt;It's really quite a funny article, but lots of great info. Recommended.&lt;/DIV&gt;&lt;/DIV&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post:&lt;/strong&gt; &lt;a href = "mailto:?body=Thought you might like this: http://regexadvice.com/blogs/royo/archive/2004/03/19/287.aspx&amp;amp;;subject=Running+The+Regulator+on+.Net+1.0" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2004/03/19/287.aspx"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://regexadvice.com/blogs/royo/archive/2004/03/19/287.aspx&amp;amp;;title=Running+The+Regulator+on+.Net+1.0" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2004/03/19/287.aspx"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://regexadvice.com/blogs/royo/archive/2004/03/19/287.aspx&amp;amp;;phase=2" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2004/03/19/287.aspx"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://regexadvice.com/blogs/royo/archive/2004/03/19/287.aspx&amp;amp;title=Running+The+Regulator+on+.Net+1.0" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2004/03/19/287.aspx"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://regexadvice.com/blogs/royo/archive/2004/03/19/287.aspx&amp;amp;;title=Running+The+Regulator+on+.Net+1.0" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2004/03/19/287.aspx"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;;mkt=en-us&amp;amp;;url=http://regexadvice.com/blogs/royo/archive/2004/03/19/287.aspx&amp;amp;;title=Running+The+Regulator+on+.Net+1.0&amp;amp;;top=1" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2004/03/19/287.aspx"&gt;live it!&lt;/a&gt;&lt;/div&gt;&lt;img src="http://regexadvice.com/aggbug.aspx?PostID=287" width="1" height="1"&gt;</description></item><item><title>The Regulator featured on Regexlib.com</title><link>http://regexadvice.com/blogs/royo/archive/2004/02/22/286.aspx</link><pubDate>Sun, 22 Feb 2004 21:30:00 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:286</guid><dc:creator>royo</dc:creator><slash:comments>0</slash:comments><comments>http://regexadvice.com/blogs/royo/comments/286.aspx</comments><wfw:commentRss>http://regexadvice.com/blogs/royo/commentrss.aspx?PostID=286</wfw:commentRss><description>&lt;DIV&gt;&lt;A href="http://royo.is-a-geek.com/iserializable/regulator/"&gt;The Regulator&lt;/A&gt;, my Regex testing tool, has been named by &lt;A href="http://www.regexlib.com/"&gt;Regexlib.com&lt;/A&gt; as their &amp;#8220;recommended tool for testing regular expressions&amp;#8221; and has been put up there in the front page. They also put up a &lt;A href="http://www.regexlib.com/Resources.aspx"&gt;resource page&lt;/A&gt; for many other regex testing tools, books, articles and links.&amp;nbsp; I'm totally flattered. &lt;/DIV&gt;
&lt;DIV&gt;&lt;A href="http://www.regexlib.com/"&gt;Regexlib.com&lt;/A&gt; is a website dedicated to collecting and sharing regular expressions to parse almost anything. Anyone can register and post their own regular expressions that they've found interesting and helpful. You can too.&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;A href="http://royo.is-a-geek.com/iserializable/regulator/"&gt;The Regulator&lt;/A&gt; has tight integration with &lt;A href="http://www.regexlib.com/"&gt;Regexlib.&lt;/A&gt;com's web service, which allows the user to search for regular expressions in regexlib.com's database from within the tool, and with a click import them and test them inside the program.&lt;/DIV&gt;
&lt;DIV&gt;It also features a &amp;#8220;publish&amp;#8220; wizard which lets you post regular expressions onto regexlib.com directly from within The Regulator.Did I mention it's totally free?&lt;/DIV&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post:&lt;/strong&gt; &lt;a href = "mailto:?body=Thought you might like this: http://regexadvice.com/blogs/royo/archive/2004/02/22/286.aspx&amp;amp;;subject=The+Regulator+featured+on+Regexlib.com" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2004/02/22/286.aspx"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://regexadvice.com/blogs/royo/archive/2004/02/22/286.aspx&amp;amp;;title=The+Regulator+featured+on+Regexlib.com" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2004/02/22/286.aspx"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://regexadvice.com/blogs/royo/archive/2004/02/22/286.aspx&amp;amp;;phase=2" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2004/02/22/286.aspx"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://regexadvice.com/blogs/royo/archive/2004/02/22/286.aspx&amp;amp;title=The+Regulator+featured+on+Regexlib.com" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2004/02/22/286.aspx"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://regexadvice.com/blogs/royo/archive/2004/02/22/286.aspx&amp;amp;;title=The+Regulator+featured+on+Regexlib.com" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2004/02/22/286.aspx"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;;mkt=en-us&amp;amp;;url=http://regexadvice.com/blogs/royo/archive/2004/02/22/286.aspx&amp;amp;;title=The+Regulator+featured+on+Regexlib.com&amp;amp;;top=1" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2004/02/22/286.aspx"&gt;live it!&lt;/a&gt;&lt;/div&gt;&lt;img src="http://regexadvice.com/aggbug.aspx?PostID=286" width="1" height="1"&gt;</description></item><item><title>The Regulator Wiki</title><link>http://regexadvice.com/blogs/royo/archive/2004/01/08/285.aspx</link><pubDate>Thu, 08 Jan 2004 19:24:00 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:285</guid><dc:creator>royo</dc:creator><slash:comments>0</slash:comments><comments>http://regexadvice.com/blogs/royo/comments/285.aspx</comments><wfw:commentRss>http://regexadvice.com/blogs/royo/commentrss.aspx?PostID=285</wfw:commentRss><description>&lt;P&gt;I've decided to create a Wiki site for &lt;A href="http://royo.is-a-geek.com/iserializable/regulator"&gt;The Regulator&lt;/A&gt;. Since I can't find the time to create all the documentation myself, I thought if I make this a public thing then people who use this tool can put their knowledge on this Wiki for others to benefit from.&lt;/P&gt;
&lt;P&gt;Right now there's not much to see there (I just put it up a few days ago and have not really touched it) BTW I'm hoping with time we'll get it into a workable stage.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://royo.is-a-geek.com/flexwiki/default.aspx/Regulator.HomePage"&gt;The Regulator Wiki&lt;/A&gt;&lt;/P&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post:&lt;/strong&gt; &lt;a href = "mailto:?body=Thought you might like this: http://regexadvice.com/blogs/royo/archive/2004/01/08/285.aspx&amp;amp;;subject=The+Regulator+Wiki" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2004/01/08/285.aspx"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://regexadvice.com/blogs/royo/archive/2004/01/08/285.aspx&amp;amp;;title=The+Regulator+Wiki" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2004/01/08/285.aspx"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://regexadvice.com/blogs/royo/archive/2004/01/08/285.aspx&amp;amp;;phase=2" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2004/01/08/285.aspx"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://regexadvice.com/blogs/royo/archive/2004/01/08/285.aspx&amp;amp;title=The+Regulator+Wiki" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2004/01/08/285.aspx"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://regexadvice.com/blogs/royo/archive/2004/01/08/285.aspx&amp;amp;;title=The+Regulator+Wiki" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2004/01/08/285.aspx"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;;mkt=en-us&amp;amp;;url=http://regexadvice.com/blogs/royo/archive/2004/01/08/285.aspx&amp;amp;;title=The+Regulator+Wiki&amp;amp;;top=1" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2004/01/08/285.aspx"&gt;live it!&lt;/a&gt;&lt;/div&gt;&lt;img src="http://regexadvice.com/aggbug.aspx?PostID=285" width="1" height="1"&gt;</description></item><item><title>free sample chapter on Regular Expressions</title><link>http://regexadvice.com/blogs/royo/archive/2003/12/21/284.aspx</link><pubDate>Sun, 21 Dec 2003 14:52:00 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:284</guid><dc:creator>royo</dc:creator><slash:comments>1</slash:comments><comments>http://regexadvice.com/blogs/royo/comments/284.aspx</comments><wfw:commentRss>http://regexadvice.com/blogs/royo/commentrss.aspx?PostID=284</wfw:commentRss><description>&lt;P&gt;&lt;FONT face=Verdana size=2&gt;&lt;EM&gt;The long-awaited &lt;/EM&gt;&lt;/FONT&gt;&lt;A href="http://weblogs.asp.net/sbchatterjee/posts/6880.aspx"&gt;&lt;FONT face=Verdana size=2&gt;&lt;EM&gt;'phantom' C#&amp;nbsp;Cookbook &lt;/EM&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Verdana size=2&gt;&lt;EM&gt;from OReilly will be available in Jan '04. It has a &lt;/EM&gt;&lt;/FONT&gt;&lt;A href="http://www.oreilly.com/catalog/csharpckbk/chapter/index.html"&gt;&lt;FONT face=Verdana size=2&gt;&lt;EM&gt;sample chapter on 'Regular Expressions' &lt;/EM&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Verdana size=2&gt;&lt;EM&gt;&amp;nbsp;available for download.. something to read during the cold&amp;nbsp;&lt;/EM&gt;&lt;/FONT&gt;&lt;A href="http://weblogs.asp.net/rosherove/posts/44599.aspx"&gt;&lt;FONT face=Verdana size=2&gt;&lt;EM&gt;Norwegian evenings&lt;/EM&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Verdana size=2&gt;&lt;EM&gt; ;-)&lt;/EM&gt;&lt;/FONT&gt; &lt;/P&gt;
&lt;P&gt;[via &lt;A href="http://weblogs.asp.net/sbchatterjee/posts/44946.aspx"&gt;SBC&lt;/A&gt;]&lt;/P&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post:&lt;/strong&gt; &lt;a href = "mailto:?body=Thought you might like this: http://regexadvice.com/blogs/royo/archive/2003/12/21/284.aspx&amp;amp;;subject=free+sample+chapter+on+Regular+Expressions" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2003/12/21/284.aspx"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://regexadvice.com/blogs/royo/archive/2003/12/21/284.aspx&amp;amp;;title=free+sample+chapter+on+Regular+Expressions" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2003/12/21/284.aspx"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://regexadvice.com/blogs/royo/archive/2003/12/21/284.aspx&amp;amp;;phase=2" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2003/12/21/284.aspx"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://regexadvice.com/blogs/royo/archive/2003/12/21/284.aspx&amp;amp;title=free+sample+chapter+on+Regular+Expressions" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2003/12/21/284.aspx"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://regexadvice.com/blogs/royo/archive/2003/12/21/284.aspx&amp;amp;;title=free+sample+chapter+on+Regular+Expressions" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2003/12/21/284.aspx"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;;mkt=en-us&amp;amp;;url=http://regexadvice.com/blogs/royo/archive/2003/12/21/284.aspx&amp;amp;;title=free+sample+chapter+on+Regular+Expressions&amp;amp;;top=1" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2003/12/21/284.aspx"&gt;live it!&lt;/a&gt;&lt;/div&gt;&lt;img src="http://regexadvice.com/aggbug.aspx?PostID=284" width="1" height="1"&gt;</description></item><item><title>Makes me feel great</title><link>http://regexadvice.com/blogs/royo/archive/2003/11/22/283.aspx</link><pubDate>Sat, 22 Nov 2003 14:00:00 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:283</guid><dc:creator>royo</dc:creator><slash:comments>1</slash:comments><comments>http://regexadvice.com/blogs/royo/comments/283.aspx</comments><wfw:commentRss>http://regexadvice.com/blogs/royo/commentrss.aspx?PostID=283</wfw:commentRss><description>It's posts like&lt;A href="http://www.cauldwell.net/patrick/blog/PermaLink.aspx?guid=df3b066d-9ea4-4265-bbb0-2d0b83e26c65"&gt; this one &lt;/A&gt;that make me really happy I took the time and created &lt;A href="http://royo.is-a-geek.com/regulator"&gt;The Regulator&lt;/A&gt;. I promise to keep working on it and make it even better.
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post:&lt;/strong&gt; &lt;a href = "mailto:?body=Thought you might like this: http://regexadvice.com/blogs/royo/archive/2003/11/22/283.aspx&amp;amp;;subject=Makes+me+feel+great" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2003/11/22/283.aspx"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://regexadvice.com/blogs/royo/archive/2003/11/22/283.aspx&amp;amp;;title=Makes+me+feel+great" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2003/11/22/283.aspx"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://regexadvice.com/blogs/royo/archive/2003/11/22/283.aspx&amp;amp;;phase=2" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2003/11/22/283.aspx"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://regexadvice.com/blogs/royo/archive/2003/11/22/283.aspx&amp;amp;title=Makes+me+feel+great" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2003/11/22/283.aspx"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://regexadvice.com/blogs/royo/archive/2003/11/22/283.aspx&amp;amp;;title=Makes+me+feel+great" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2003/11/22/283.aspx"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;;mkt=en-us&amp;amp;;url=http://regexadvice.com/blogs/royo/archive/2003/11/22/283.aspx&amp;amp;;title=Makes+me+feel+great&amp;amp;;top=1" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2003/11/22/283.aspx"&gt;live it!&lt;/a&gt;&lt;/div&gt;&lt;img src="http://regexadvice.com/aggbug.aspx?PostID=283" width="1" height="1"&gt;</description></item><item><title>The Regulator version 1.02 beta 2 is out</title><link>http://regexadvice.com/blogs/royo/archive/2003/11/18/282.aspx</link><pubDate>Tue, 18 Nov 2003 17:14:00 GMT</pubDate><guid isPermaLink="false">d291b357-6366-4006-9008-4266c301325a:282</guid><dc:creator>royo</dc:creator><slash:comments>0</slash:comments><comments>http://regexadvice.com/blogs/royo/comments/282.aspx</comments><wfw:commentRss>http://regexadvice.com/blogs/royo/commentrss.aspx?PostID=282</wfw:commentRss><description>&lt;P&gt;&lt;A href="http://www.gotdotnet.com/Community/Workspaces/workspace.aspx?id=24289454-7ec7-45b6-82ae-f6a636dc5fea"&gt;get it here.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;What's new :&lt;/P&gt;
&lt;P&gt;---------------&lt;BR&gt;&lt;STRONG&gt;-added&lt;/STRONG&gt;: split functionality. You have a new tab in the output tabs pane (bottom left) called "splits".&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;pressing F7 will call Regex.Split(input text) using the specified options and show them in the new tab&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;showing index and text columns for the results array.&lt;BR&gt;&lt;STRONG&gt;-added&lt;/STRONG&gt;: Split icon(F7) in main toolbar&lt;BR&gt;&lt;STRONG&gt;-added&lt;/STRONG&gt;: Load input from a file on disk. &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;In the input text area there is a new toolbar that allows you to select an input file from which to load the text. &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;You can refresh the text from the file using the new "refresh" button in that toolbar.&lt;BR&gt;&lt;STRONG&gt;-added&lt;/STRONG&gt;: "Window" menu to navigate between open documents (known bug: empty menu item always exists there)&lt;BR&gt;&lt;STRONG&gt;-added&lt;/STRONG&gt;: Shortcut keys to set focus on each document part:&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;CTRL+1: Regex text&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;CTRL+2: input text&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;CTRL+3: replace text &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;CTRL+4: matches tree&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;CTRL+5: replace output&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;CTRL+6: split output&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;&lt;STRONG&gt;-fixed&lt;/STRONG&gt;: snippets.xml was readonly in the distro. It should not be or you won't be able to save your snippets from the "snippets" pane. &lt;BR&gt;&lt;STRONG&gt;-fixed&lt;/STRONG&gt;: toolbar is now disabled when no document is open&lt;BR&gt;&lt;STRONG&gt;-fixed&lt;/STRONG&gt;: you could open the same file multiple times. &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Now you'll get an alert and the existing document will be activated.&lt;/P&gt;
&lt;P&gt;-&lt;STRONG&gt;modified:&lt;/STRONG&gt; Made input text and replace text fonts bigger.&lt;BR&gt;&lt;STRONG&gt;-modifed&lt;/STRONG&gt;: changed form font to Verdana for easier reading&lt;BR&gt;-&lt;STRONG&gt;modifed:&lt;/STRONG&gt; changed replace,match and cancel icons for easier understanding&lt;/P&gt;
&lt;P&gt;-&lt;STRONG&gt;removed&lt;/STRONG&gt;: removed references for magic library from the project&lt;/P&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post:&lt;/strong&gt; &lt;a href = "mailto:?body=Thought you might like this: http://regexadvice.com/blogs/royo/archive/2003/11/18/282.aspx&amp;amp;;subject=The+Regulator+version+1.02+beta+2+is+out" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2003/11/18/282.aspx"&gt;email it!&lt;/a&gt; |  &lt;a href = "http://del.icio.us/post?url=http://regexadvice.com/blogs/royo/archive/2003/11/18/282.aspx&amp;amp;;title=The+Regulator+version+1.02+beta+2+is+out" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2003/11/18/282.aspx"&gt;bookmark it!&lt;/a&gt; |  &lt;a href = "http://www.digg.com/submit?url=http://regexadvice.com/blogs/royo/archive/2003/11/18/282.aspx&amp;amp;;phase=2" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2003/11/18/282.aspx"&gt;digg it!&lt;/a&gt; |  &lt;a href = "http://reddit.com/submit?url=http://regexadvice.com/blogs/royo/archive/2003/11/18/282.aspx&amp;amp;title=The+Regulator+version+1.02+beta+2+is+out" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2003/11/18/282.aspx"&gt;reddit!&lt;/a&gt; |  &lt;a href = "http://www.dotnetkicks.com/submit/?url=http://regexadvice.com/blogs/royo/archive/2003/11/18/282.aspx&amp;amp;;title=The+Regulator+version+1.02+beta+2+is+out" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2003/11/18/282.aspx"&gt;kick it!&lt;/a&gt; |  &lt;a href = "https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;;mkt=en-us&amp;amp;;url=http://regexadvice.com/blogs/royo/archive/2003/11/18/282.aspx&amp;amp;;title=The+Regulator+version+1.02+beta+2+is+out&amp;amp;;top=1" target="_blank" title = "Post http://regexadvice.com/blogs/royo/archive/2003/11/18/282.aspx"&gt;live it!&lt;/a&gt;&lt;/div&gt;&lt;img src="http://regexadvice.com/aggbug.aspx?PostID=282" width="1" height="1"&gt;</description></item></channel></rss>