Article

Feature Pack: Regular Expressions

By Lowter Staff on the 4th of July 2005

Skip to the Table of Contents

Regular Expressions, also referred to as Regex, are strings using specific syntax in order to match certain chunks of text. Regular Expressions were first featured in the Unix shell. They are implemented in most programming languages allowing for powerful string matching.

Learning Regular Expression Syntax

The first steps to learning how to use regular expressions are learning the proper syntax and the many operators. It is also useful to learn the history and general information about regular expressions.

What are the uses of regular expressions?

There are many uses for regular expressions, technically any type of pattern. Some examples are credit card validation, BBCode, and form validation. With the variety of programming languages supporting Perl style regular expressions there are tons of scenarios requiring regular expressions.

Using Regular Expressions in Programming Languages

Regular expressions have been implemented into most programming languages. They were first made popular, for programming languages, in Perl. Later the feature was implemented into other languages, such as PHP. Most programming languages implement a Perl style regular expression engine.

PHP
Perl
JavaScript
Java
Python
.Net

(external link)

Books
Pocket Reference

Author Profile

Lowter Staff

Lowter.com is the web developer's eZine for programming strategy, news, entertainment, reviews, and more.

Categories

Use Opera

Opera 9. Innovation delivered. Download Now (external link)

Table of Contents

  1. Regular Expressions
    1. Learning Regular Expression Syntax
    2. What are the uses of regular expressions?
    3. Using Regular Expressions in Programming Languages
      1. PHP
      2. Perl
      3. JavaScript
      4. Java
      5. Python
      6. .Net
    4. Print References on Regular Expressions
      1. Books
      2. Pocket Reference

Technology Blog (RSS)