1. Home
  2. Computing & Technology
  3. Ruby

Regular Expression

By , About.com Guide

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

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. 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.