dstelow notes…

links for 2008-08-18

leave a comment »

  • …To wrap up this overview of how regular expressions are used in the C# environment, I'll leave you with a set of useful expressions that have been used in other environments. I got them from a great book, the Perl Cookbook, by Tom Christiansen and Nathan Torkington, and updated them for C# programmers.
    (tags: dev dotnet regex c#)
  • …Regular expressions provide a powerful, flexible, and efficient method for processing text.
  • …The Windows Software Development Kit (SDK) provides an extensive set of regular expression tools that enable you to efficiently create, compare, and modify strings as well as rapidly parse large amounts of text and data to search for, remove, and replace text patterns.
    (tags: dev regex msdn)
  • At last! The answer to my long-standing regex question, and so simple!…To tell get the two shorter strings, we've got to tell the regular expression engine that, when searching for zero or more characters between our two delimiters, return the match that has the least number of characters between the delimiters. This is done by using non-greedy repetition. The .* represents greedy repetition – it looks for zero or more characters (emphasis on more). We can specify non-greedy repetition, which will return matches that have the fewest number of characters between the delimiters, by using .*? (note the addition of the question mark).
    (tags: dev regex)
  • …Welcome to the Visual Studio 2008 Samples page! Be sure to visit MSDN Code Gallery to download the latest sample applications and code snippets, as well as share your own resources with the community.

Written by dstelow

August 18, 2008 at 11:30 pm

Posted in 1

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: