Search and Replace with Regular Expressions
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 pkimmel@softconcepts.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.
More for Developers
On the Codeguru Forums
Visit the Forums »Featured Partner Resources
Get your Android Apps ready for Intel® Atom™ processor-based smartphones and tablets now.
Use the Android NDK to deliver the best performance on Intel® Atom™ processor-based devices.
The Android community on the Intel® Software Network has everything you need to prepare your apps for Intel® Atom™ processor-based devices.



Solid state disks (SSDs) made a splash in consumer technology, and now the technology has its eyes on the enterprise storage market. Download this eBook to see what SSDs can do for your infrastructure and review the pros and cons of this potentially game-changing storage technology.