Skip to main content

Learning to Use Regular Expressions

Popularity Report

Total Popularity Score: 0

Loading...
Loading...
Loading...
Loading...
Loading...
Loading...

Rank

Bookmark History

Saved by 62 people (20 private), first by anonymouse user on 2006-03-30


Public Comment

on 2006-08-23 by bluecockatoo

A good tutorial with examples of patterns and matches for RegEx expressions and explanations of how the matches are made.

on 2008-08-10 by tboelens

I find this a very goog tutorial for the basics.

Public Sticky notes

This tutorial is aimed at users and programmers who have begun to work with tools that use regular expressions, but who are not quite comfortable with the intricacies of them. Even users who may have used regular expressions in the past, but have forgotten some of the details can benefit from this as a refresher.

Highlighted by ycc2106

Two special characters are used in almost all regular expression tools to mark the beginning and end of a line:

Highlighted by the7777777

caret and dollarsign is that they match zero-width patterns

Highlighted by the7777777

a period can stand for any character

Highlighted by the7777777

caret symbol can actually have two different meanings in regular expressions. Most of the time, it means to match the zero-length pattern for line beginnings. But if it is used at the beginning of a character class, it reverses the meaning of the character class. Everything not included in the listed character set is matched

Highlighted by the7777777