Products Purchase Publishing Articles Support Company Contact |
Products > Books > .NET > Regular Expressions with .NET > Updates |
|||||||
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)
|
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.
Regular Expressions with .NET
|
|
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.