Linked by Eugenia Loli on Sun 30th Jul 2006 20:57 UTC
.NET (dotGNU too) Regardless of what type of data you're working with or what kind of application you're creating, you will undoubtedly need to work with strings. No matter how the data is stored, the end user always deals in human-readable text. As such, knowing how to work with strings is part of the essential knowledge that any .NET developer needs to make rich and compelling applications. In addition to showing you how to work with strings in the .NET Framework, this chapter will also introduce you to regular expressions. Also, Jeff Cogswell explains how to use regular expressions to simplify and enhance the power of your programmatic string searching, matching, and replacing.
Thread beginning with comment 147743
To read all comments associated with this story, please click here.
and "_"
by TDavis on Mon 31st Jul 2006 04:43 UTC
TDavis
Member since:
2006-06-10

The Grep whole label thing treats underscore as alphanumeric. Basically, it uses what the compiler recognizes as valid label characters. When it finds a string match it checks the characters before and after to see if they qualify as valid label characters. If either does, it does not process the match because the match is a substring of a larger label.

Reply Score: -2