pavement

Regular expressions

From FreeBSDwiki
(Difference between revisions)
Jump to: navigation, search
(a little more clarity)
Line 1: Line 1:
'''Regular expressions''' are used to express a subset of strings and can be used almost everywhere in FreeBSD and other *nix's. See also [[sed]]
+
'''Regular expressions''' are patterns that are used to describe a string of characters. Regular expressions might be used to match substrings in text as a logical condition for doing something in a program, for capturing the text matched by the expression in order to do something with it, and many other uses. From the commandline and in [[shell script]]s, the stream editor ([[sed]]) is used to make substitutions for matched text.  For more complex types of pattern matching and text manipulation, [[Perl]] and [[Tcl]] have a built-in regular expression engine; and most modern languages have regular expression modules.
  
 
== external links ==
 
== external links ==

Revision as of 15:21, 12 June 2006

Regular expressions are patterns that are used to describe a string of characters. Regular expressions might be used to match substrings in text as a logical condition for doing something in a program, for capturing the text matched by the expression in order to do something with it, and many other uses. From the commandline and in shell scripts, the stream editor (sed) is used to make substitutions for matched text. For more complex types of pattern matching and text manipulation, Perl and Tcl have a built-in regular expression engine; and most modern languages have regular expression modules.

external links

Wikipedia entry

Personal tools