Desaware Home
Products    Purchase    Publishing    Articles   Support    Company    Contact    
Licensing System
Professional Services
Universal .NET
Universal COM
.NET Books
Moving to VB .NET: Strategies, Concepts and Code
Introduction
Table of Contents
Sample Chapter
Sample Code
Updates
Visual Basic .NET or C#: Which to Choose
Updates
Regular Expressions with .NET
Updates
Obfuscating .NET: Protecting your code from prying eyes
Updates
Tracing and Logging in .NET
Telling Time with .NET
Hijacking .NET (series)
Exploring .NET (series)
COM Books
Other Books

bluebar
Contact Desaware and order today

bluebar
Sign up for Desaware's Newsletter for the latest news and tech tips.

Note: This page describes a product or book that, while still relevant to .NET programmers, is based on an earlier version of the .NET framework. The page is available for archival purposes and as a courtesy to those who have linked to it, but is no longer being updated or maintained.
Buy Now
amazon

Regular Expressions with .NET
$14.95 [eBook]

Updates and Corrections

Book Cover
A good introduction for beginners, as well as experts who wish to learn the .NET way of Regex

The following corrections apply to the first edition of the book: Regular Expressions with .NET 

Page 15 - Pattern at the bottom of the page.

Replace: 

(\s+)Dim\s+(\w+)\s+As\s+(\w+)

with:

(\s*)Dim\s+(\w+)\s+As\s+(\w+)

This allows the pattern to work even if there are no leading spaces. 

Page 21 - Ignore Case Option.

Remove the last sentence "This option makes all pattern matches of characters in a Regular Expression case insensitive." The sentence is unnecessary and misleading.

Page 32 - results
The word sentence. in the results should actually be sentence!

Page 52 - First pattern on the page

(?:(?<ltparen>\()|(?<rtparen-ltparen>\))|[^\)])*

Should be:

(?:(?<ltparen>\()|(?<rtparen-ltparen>\))|[^\)\(])*

The downloaded sample code was correct.

 

Books
How Regular Expessions Work
 
Products    Purchase    Articles    Support    Company    Contact
Copyright© 2012 Desaware, Inc. All Rights Reserved.    Privacy Policy