Attention: We are retiring the ASP.NET Community Blogs. Learn more >

ShowUsYour<Blog>

Irregular expressions regularly

  • Displaying text on a web page

    You are creating a an app. that will allow a user to "fetch, fix and format" regular expressions.  The database table that stores the regex's is called Pattern and looks like this:

  • Tokenizing

    Two friends have recently asked me to provide a definition for the term "Tokenize" as in: "I'm going to tokenize this chunk of text.", and I didn't really provide an answer. I guess that they asked me because it's a term that I've used quite a bit in the past - and in the future too no doubt ;-)

  • It's been a long weekend

    Literally, it was a three day weekend here in the land of Oz - Queen's Birthday or something?  I got hamstrung working through my latest article but was helped out of the mire by a couple of good friends, thatnks :-)

  • A bit about colors

    I came up with this little piece of code for an app. that I'm currently writing. The requirement was that a user can specify colors in an app. configuration file in either named or Hex format. I also used this a *lot* while building the app.

  • ResourceLinks.xml

    Here's a copy of my current "Resources" file for RegexSnippets.  It contains many more links than the online version.
    To use it simply replace your current Resources data file located at:
        \MyDocuments\RegexSnippets\ResourceLinks.xml

    <?xml version="1.0" encoding="utf-8" ?>
    <Links>
        <Categories>
            <Category name="Sites">
                <Link name="BCL documentation" url="http://msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemTextRegularExpressions.asp?frame=true" description="Documentation for System.Text.RegularExpressions" />
                <Link name=".NET Regex documentation" url="http://msdn.microsoft.com/library/en-us/cpguide/html/cpconcomregularexpressions.asp?frame=true" description="The offical .NET Framework regex help documentation." />
                <Link name="VBScript documentation" url="http://msdn.microsoft.com/library/en-us/script56/html/jsgrpRegExpSyntax.asp?frame=true" description="VBScript documentation" />
                <Link name="JScript documentation" url="http://msdn.microsoft.com/library/en-us/script56/html/js56jsgrpregexpsyntax.asp?frame=true" description="JScript documentation" />
                <Link name="RegExLib.com" url="http://www.regexlib.com" description="Useful repository of regular expressions." />
                <Link name="Grouping Constructs" url="http://msdn.microsoft.com/library/en-us/cpgenref/html/cpcongroupingconstructs.asp" description="Grouping constructs allow you to capture groups of subexpressions and to increase the efficiency of regular expressions with noncapturing lookahead and lookbehind modifiers." />
            </Category>
            <Category name="Tools">
                <Link name="Regex Snippets" url="http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=43d952b8-afc6-491b-8a5f-01ebd32f2a6c" description="Tool developed by Darren Neimke.  Features the ability to save favourite regex patterns." />
                <Link name="Eric Gunnerson's Regex Workbench" url="http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=c712f2df-b026-4d58-8961-4ee2729d7322" description="Eric Gunnerson's Regex Workbench" />
                <Link name="Sellsbrothers - Regex Designer .NET" url="http://www.sellsbrothers.com/tools/" description="Sellsbrothers - Regex Designer .NET" />
                <Link name="Expresso" url="http://www.codeproject.com/dotnet/Expresso.asp" description="For learning, building, and debugging .NET Framework regular expressions." />
                <Link name="RegexDebugger.NET" url="http://www.net-developer.info/products/" description="The utility was written to help you to understand syntax of regular expressions and to debug them in the easiest way." />
                <Link name="Regular Expression Lab" url="http://www.geocities.com/udeleng/regex.htm" description="Enjoy this client-side DHTML tool for testing regular expressions using the Javascript, VBScript, and PerlScript Engines." />
            </Category>
            <Category name="Articles and Books">
                <Link name="Understanding Regular Expressions" url="http://www.foo.be/docs/tpj/issues/vol1_2/tpj0102-0006.html" description="Jeffrey Friedl's classic article.. start here!" />
                <Link name="Mastering Regular Expressions (2nd edition)" url="http://www.amazon.com/exec/obidos/redirect?tag=forestlakewebser&amp;path=ASIN/0596002890" description="Jeffrey Friedl's latest book.  Very comprehensive, a must have." />
                <Link name="ASP.NET.4GuysFromRolla.com: Regular Expressions in .NET" url="http://aspnet.4guysfromrolla.com/articles/022603-1.aspx" description="An introduction to regular expressions in the .NET Framework." />
            </Category>
            <Category name="Forums and Lists">
                <Link name="DotNetRegex" url="http://groups.yahoo.com/group/dotnetregex/" description="DotNetRegex" />
                <Link name="ASPAlliance Lists" url="http://aspalliance.com/lists/" description="ASPAlliance Lists" />
                <Link name="ASPMessageboard - Regular Expressions" url="http://www.aspmessageboard.com/forum/regularExpressions.asp" description="ASPMessageboard - Regular Expressions" />
            </Category>
        </Categories>
    </Links> 

  • completely O.T.

    Just logged in to Msn and noticed that one of my buddies has changed their name to:

  • New RegexSnippets release

    I've finally finished testing some new features that I've added to RegexSnippets and, with the assistance of Chad Osgood who has given me a great deal of feedback regarding features and useability issues.  Thanks Chad :-)