1. Home
  2. Computing & Technology
  3. Ruby

Regular Expression

By Amanda & Michael Morin, About.com

Definition:

Regular expression: A specialized computer language for matching strings of text. This often cryptic language is used within many other languages such as Ruby and, most notably, Perl, to allow programmers to match sections of text in a string. The regular expression to match all letters followed by a period, for example, could be expressed as:

[a-z]+\.

Also Known As: regex, regexp,regexes,regexps,regexen
Alternate Spellings: regex, regexp, re
Explore Ruby
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Ruby
  4. Glossary
  5. M - R
  6. Regular Expression

©2009 About.com, a part of The New York Times Company.

All rights reserved.