search for books and compare prices
Tables of Contents for Visual Basic.Net Text Manipulation Handbook
Chapter/Section Title
Page #
Page Count
Introduction
1
1
Who Is This Book For?
2
1
Book Outline
2
2
How the System Deals with Text
2
1
String and StringBuilder
3
1
String Conversion
3
1
Internationalization
3
1
Introducing Regular Expressions
3
1
Advanced Regex Concepts
3
1
Regular Expression Patterns
4
1
Appendices
4
1
The Code Download
4
3
How the System Deals with Text
7
32
The .NET Framework
8
3
Common Language Runtime
8
1
Managed Heap
9
1
.NET Framework Class Library
10
1
Text as a Data Type
11
7
Visual Basic .NET Data Types
12
1
Value Types and Reference Types
12
1
Primitive Types
12
1
Characters and Character Sets
13
2
Characters in Visual Basic .NET
15
2
String Data Type
17
1
Text Storage
18
8
Caching
20
1
Interning
21
1
Other Approaches
21
1
.NET Implementation
22
4
String Operations
26
4
Concatenation
26
2
Substrings
28
1
Comparing Strings
29
1
Conversion
29
1
Formatting
30
1
String Uses
30
3
Building Strings
31
1
Parsing Strings
32
1
Internationalization
33
2
.NET Resource Files
35
1
Summary
36
3
String and StringBuilder
39
40
Tools for this Chapter
39
1
Text Architecture
40
1
Visual Basic vs .NET Framework
41
2
Indices
42
1
Nothing and Empty Strings
42
1
String Class
43
7
Interning Strings
45
2
Construction
47
2
Assigning Strings
49
1
StringBuilder Class
50
5
Length and Capacity
52
2
ToString()
54
1
String Operations
55
12
Concatenation
56
2
SubStrings
58
1
Comparing Strings
59
3
Formatting
62
1
Formatting Numbers
63
2
Formatting Dates
65
1
Formatting Enumerations
66
1
Format Choices
66
1
Uses of Strings
67
10
Building Strings
67
3
Tokenizing
70
2
Reversing a String
72
1
Insert, Remove, and Replace
73
1
Choosing Between String and StringBuilder
74
3
Summary
77
2
String Conversion
79
20
The ToString() Method
79
1
Representing Numeric Values as Strings
80
5
NumberFormatInfo
83
2
Representing Date and Time as a String
85
2
The DateTimeFormatInfo Class
86
1
Representing Other Objects as Strings
87
2
Representing Strings with Strings
89
1
From String to Other Types
90
4
Converting Strings to Numbers
90
2
Converting Strings to Date and Time
92
2
Moving Strings Between Collections and Arrays
94
3
Arrays
95
1
ArrayLists
96
1
IDictionary Objects
97
1
Summary
97
2
Internationalization
99
30
Unicode
100
2
Encoding Formats
101
1
.NET Framework Encoding Classes
102
3
The Encoding Class
102
3
Dealing with Strings
105
12
The CultureInifo Class
106
1
Culture Names
106
1
The Different Types of Culture
106
2
The Two Roles of CultureInfo
108
1
Setting the CurrentCulture and the CurrentUICulture
109
1
Uppercasing and Lowercasing
110
1
Uppercasing
110
1
Lowercasing
111
1
When Culture-Sensitive Operations are Not Desired
111
1
Sorting
112
1
String.CompareOrdinal()
113
1
String.Compare()
113
1
String.Compare To()
114
1
Using the CompareInfo Class
115
2
Dealing with Characters
117
8
Necessary Information about Characters
117
1
Surrogate Pairs
118
1
How This Works
118
1
Why Support Surrogates
119
1
Handling Surrogates
120
1
Displaying Surrogates
120
3
Surrogates Input
123
1
Sorting
123
1
Combining Characters
123
1
Dealing with Surrogate Pairs and Combining Characters
124
1
StringInfo.ParseCombiningCharacters()
125
1
StringInfo.GetTextEnumerator()
125
1
Formatting Unicode Strings
125
2
Summary
127
2
Introducing Regular Expressions
129
34
System.Text.RegularExpressions
130
1
The Regex Class
130
5
RegexOptions
131
1
Class Constructor
132
1
IsMatch() Method
132
1
Replace() Method
133
1
Split()
134
1
The Match and MatchCollection Classes
135
3
Regex Tester Example
138
9
Fundamental Regular Expression Syntax
147
14
Matching Different Classes of Characters
148
1
Specifying Match Position
149
2
Specifying Repetition
151
2
Greedy and Lazy Expressions
153
6
Specifying Alternatives
159
1
Special Characters
159
2
Summary
161
2
Advanced Regex Concepts
163
30
Groups, Substitutions, and Backreferences
163
21
Simple Groups
164
1
Capturing:()
165
1
Non-Capturing:(?:)
165
1
Capturing-By-Name: (?<name>)
166
1
Comparing Simple Groups
166
3
The Group and GroupCollection Classes
169
5
Substitutions
174
2
Backreferences
176
2
Advanced Groups
178
1
Positive Look-Ahead Assertion: (?=)
178
1
Negative Look-Ahead Assertion: (?!)
178
1
Positive Look-Behind Assertion: (?<=)
178
1
Negative Look-Behind Assertion: (?<!)
179
1
Non-Backtracking: (?>)
179
1
Comparing Advanced Groups
179
5
Making Decisions in Regular Expressions
184
2
Setting Options Within a Regex
186
1
Rules of the Regex Engine
187
3
Summary
190
3
Regular Expression Patterns
193
36
Validating Characters
193
1
Validating Numbers
194
2
Numbers Only
194
1
Integer Numbers Only
194
1
Floating-Point Numbers
195
1
Validating a Telephone Number
196
3
Validating a Postal Code
199
1
Validating an Email Address
200
4
Validating an IP Address
201
1
Validating a Domain Name
202
1
Validating a Person's Address
203
1
Validating the Complete Address
203
1
Analyzing an SMTP Log File
204
11
HTML Tags
215
11
Removing HTML from User Input
216
1
Extracting All HTML Tags
217
4
HTML Extraction Example
221
5
Summary
226
3
Appendix A: The String Class
229
10
Appendix B: The StrinBuilder Class
239
6
Appendix C: Regular Expression Syntax
245
12
Matching Characters
245
1
Repetition Characters
246
1
Positional Characters
247
1
Grouping Characters
248
3
Decision Making Characters
251
1
Substitution Characters
252
1
Escape Sequences
252
1
Option Flags
253
4
Appendix D: Support, Errata, and Code Download
257
6
How to Download the Sample Code for the Book
257
1
Errata
258
1
E-Mail Support
258
1
p2p.wrox.com
259
4
Index
263