Home arrow ASP arrow The Complete Regular Expression Guide

The Complete Regular Expression Guide

Thought regular expressions were too tough to master? If so, think again! In this article Jan runs you through everything you need to know, no matter which programming language you use!

Author Info:
By: Jan Borsodi
Rating: 5 stars5 stars5 stars5 stars5 stars / 58
December 27, 2002
  1. · The Complete Regular Expression Guide
  2. · Usage
  3. · Assertions
  4. · Wildcards
  5. · Conclusion

print this article

The Complete Regular Expression Guide
(Page 1 of 5 )

A regular expression is a text pattern consisting of a combination of alphanumeric characters and special characters known as meta-characters. A close relative is in fact the wildcard expression, which is often used in file management. The pattern is used to match against text strings. The result of a match is either successful or not, however when a match is successful not all of the pattern must match. This is explained later in the article.

You'll find that regular expressions are used in three different ways: Regular text match, search and replace and splitting. The latter is basically the same as the reverse match i.e. everything the regular expression did not match.

Regular expressions are often simply called regexp's or RE, but for consistency I'll be referring to them with their full name throughout this article.

Due to the versatility of the regular expression, it is widely used in text processing and parsing. UNIX users are probably familiar with them through the use of the programs grep, sed, awk and ed. Text editors such as (X)Emacs and vi also use them heavily. Probably the most known use of regular expressions are in the programming language Perl. You'll find that Perl sports the most advanced regular expression implementation to this day.

In this article I will not concentrate on any particular programming language. Instead, I will provide you with a general overview of regular expressions, from which you can implement into your desired programming/scripting language.
Next: Usage >>

blog comments powered by Disqus

- Central Scoreboard with Flash and ASP
- Calorie Counter Using WAP and ASP
- Creating PGP-Encrypted E-Mails Using ASP
- Be My Guest in ASP
- Session Replacement in ASP
- Securing ASP Data Access Credentials Using t...
- The Not So Ordinary Address Book
- Adding and Displaying Data Easily via ASP an...
- Sending Email From a Form in ASP
- Adding Member Services in ASP
- Removing Unconfirmed Members
- Trapping HTTP 500.100 - Internal Server Error
- So Many Rows, So Little Time! - Case Study
- XDO: An XML Engine Class for Classic ASP
- Credit Card Fraud Prevention Using ASP and C...

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 

Developer Shed Affiliates


© 2003-2019 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials