Online
 
Friday, 09 January 2009
 
 
More article:
Related Content:

The Basics of Regular Expressions
 
Article Index
The Basics of Regular Expressions
Page 2
Page 3

The Basics of Regular Expressions

Regex is, essentially, a whole new language, with its rules, its structures, and its quirks. You'll also find that your knowledge of most other programming languages will have practically no bearing on learning regex, for the simple reason that regular expressions are highly specialized and follow their own rules.

As defined by Kleene, the basic regex axioms are the following:

  • A single character is a regular expression denoting itself.

  • A sequence of regular expressions is a regular expression

  • Any regular expression followed by a * character (also known as "Kleene's Star") is a regular expression composed of zero or more instances of that regular expression.

  • Any pair of regular expressions separated by a pipe character (|) is a regular expression composed of either the left or the right regular expression.

  • Parentheses can be used to group regular expressions.


    Tags: Add more tags...,
    This entry was posted on . You can follow any responses to this entry through the RSS 2.0 feed. You can leave a comment. Tags: Simple PHP, Pear, Easy PHP, PHP Tutorial, PHP MySQL, XSLT, Sap Tutorial, CSS Tutorial, XSL FO Java, SQL Tutorial.
    Users' Comments (0)

    Comment an article
      Name
      E-mail
       Title
    Available characters: 4000
     Notify me of follow-up comments
    This image contains a scrambled text, it is using a combination of colors, font size, background, angle in order to disallow computer to automate reading. You will have to reproduce it to post on my homepage
    Enter what you see:

    No comment posted

Mobile Wallpaper 136
Statistic


Last Post

 
Top! Top!