Difference between revisions of "regular expressions"

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
Jump to navigation Jump to search
m (updated navbar; sections for navbar & overview)
(→‎Articles: an example)
Line 6: Line 6:
 
* [[Perl regex]]
 
* [[Perl regex]]
 
* [[regex manpage]]
 
* [[regex manpage]]
 +
==Examples==
 +
* \[http://[a-z|.|\-]+\.[a-z|.|\-]+[a-z|.|\-/]* [a-z|A-Z| ]+\]
 +
** matches a link in [[MediaWiki]] markup (it could probably be more precise, but catches most of them)

Revision as of 01:22, 30 September 2007

Navbar

computing: software: programming: regex

Overview

Regex is shorthand for "Regular Expressions", a syntax used in string matching and replacement. It is especially heavily used in Perl, and the Linux utility grep is basically a front end for regex geared towards file-searching.

Articles

Examples

  • \[http://[a-z|.|\-]+\.[a-z|.|\-]+[a-z|.|\-/]* [a-z|A-Z| ]+\]
    • matches a link in MediaWiki markup (it could probably be more precise, but catches most of them)