Search and Replace with Regular Expressions, Page 4
By the way, if you are wondering, the code in Listings 1 and 2 is an example of "LINQ to SQL" code that shows just how easy it is to create an object relational mapping and use LINQ to query SQL Server tables. (For more on LINQ to SQL, check out my upcoming book LINQ Unleashed: for C# from Sams in July 2008.)
It is worth noting that Visual Studio's Regular expressions aren't identical to regular expressions in the framework. One more thing to learn is occasionally being able to 'fix code' written large and quickly is a valuable and magical trick to have up your sleeve.
About the Author
Paul Kimmel is the VB Today columnist for www.codeguru.com and has written several books on object-oriented programming and .NET. Check out his upcoming book, LINQ Unleashed for C#, due in July 2008. Paul Kimmel is an Application Architect for EDS. You may contact him for technology questions at email@example.com.
If you are interested in joining or sponsoring a .NET Users Group, check out www.glugnet.org. Glugnet opened a users group branch in Flint, Michigan in August 2007. If you are interested in attending, check out the www.glugnet.org web site for updates.
Copyright © 2008 by Paul T. Kimmel. All Rights Reserved.