Chapter 3: Strings and Regular Expressions | CodeGuru

Chapter 3: Strings and Regular Expressions

3.0. Introduction It would be very rare to create an entire application without using a single string. Strings help make sense of the seemingly random jumble of binary data that applications use to accomplish a task. They appear in all facets of application development from the smallest system utility to large enterprise services. Their value […]

Written By
CodeGuru Staff
CodeGuru Staff
Mar 12, 2004
1 minute read
CodeGuru content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More

3.0. Introduction

It would be very rare to create an entire application without using a single
string. Strings help make sense of the seemingly random jumble of binary data
that applications use to accomplish a task. They appear in all facets of
application development from the smallest system utility to large enterprise
services. Their value is so apparent that more and more connected systems are
leaning toward string data within their communication protocols by utilizing
the Extensible Markup Language (XML) rather than the more cumbersome
traditional transmission of large binary data. This book uses strings
extensively to examine the internal contents of variables and the results of
program flow using Framework Class Libraries (FCL) methods such as Console.WriteLine
and MessageBox.Show.

In this chapter, you will learn how to take advantage of the rich support for
strings within the .NET Framework and the C# language. Coverage includes ways
to manipulate string contents, programmatically inspect strings and their
character attributes, and optimize performance when working with string
objects. Furthermore, this chapter uncovers the power of regular expressions
and how they allow you to effectively parse and manipulate string data. After
reading this chapter, you will be able to use regular expressions in a variety
of different situations where their value is apparent.

CodeGuru Logo

CodeGuru covers topics related to Microsoft-related software development, mobile development, database management, and web application programming. In addition to tutorials and how-tos that teach programmers how to code in Microsoft-related languages and frameworks like C# and .Net, we also publish articles on software development tools, the latest in developer news, and advice for project managers. Cloud services such as Microsoft Azure and database options including SQL Server and MSSQL are also frequently covered.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.