[Image of Linux]
The Personal Web Pages of Chris X. Edwards

Regular Expression Tutorial

--------------------------

LITERALS vs. METACHARACTERS

There are two types of characters that show up in regular expressions, literals and metacharacters. A literal character has no special meaning to the computer. The letters "JFK" might be your initials and have some special meaning to you, but to the regular expression interpreter, they are not special. "JFK" means "JFK" just like "abc" means "abc" and nothing more. The other type of characters are called "metacharacters". If regular expressions only involved literal characters, they would be rather simplistic search features. It is the concentrated power of the metacharacters that make regular expressions so useful.

re-R --------------------------
Previous Home Next
This page was created with only free, open-source, publicly licensed software.
This page was designed to be viewed with any browser on any system.
Chris X. Edwards ~ December 2003