Regular Expressions

From TekiWiki

Jump to: navigation, search

This whole wiki has now moved to http://www.springboardsolutions.com/wiki

Go to this page Regular Expressions

(→Search String Rules)
 
Line 1: Line 1:
A Regular Expression is a compact way to express a text search or replacement.
A Regular Expression is a compact way to express a text search or replacement.
-
Regular expression calculator:  [http://www.homemarketeer.com/sbs/regular_expression.html Regular Expression Calculator]
+
* Regular expression calculator:  [http://www.homemarketeer.com/sbs/regular_expression.html Regular Expression Calculator]
-
Regular expression information: [http://www.homemarketeer.com/sbs/regexp.htm Regular Expression Information]
+
* Regular expression text calculator: [http://www.homemarketeer.com/tools/text_processor Regular Expression Text Processor]
 +
* Regular expression information: [http://www.homemarketeer.com/sbs/regexp.htm Regular Expression Information]
-
A Regular Expression is a search string and optionally a replacement string:
+
* Using Regular Expressions in PeopleSoft - [[PeopleSoft Regular Expressions]]
 +
 
 +
[[Regular Expression Examples]]
 +
 
 +
==About Regular Expressions ==
 +
A Regular Expression is a compact way of expressing patterns to search for and, optionally, a replace. It started life within Unix grep, but has now been implemented in many different technologies, for example:
 +
 
 +
Languages: AWK, Perl, Java, JavaScript
 +
 
 +
Text Editors: TextPad, UltraEdit
 +
 
 +
Over the years, there have been extensions to the Regular Expression syntax, but there is a core which all implementations accept.
==Search String Rules==
==Search String Rules==
Line 22: Line 34:
(ab|cd) - matches ab or cd
(ab|cd) - matches ab or cd
-
* - matches zero or any number of the previous character/expression
+
<nowiki>* - matches zero or any number of the previous character/expression</nowiki>
+ - matches one or more of the previous character/expression
+ - matches one or more of the previous character/expression
Line 68: Line 80:
& - replace with entire matched string
& - replace with entire matched string
-
$1 ... $9 - replace with first ... ninth matched bracketed () expression
+
$1 ... $99 - replace with first ... ninety-ninth matched bracketed () expression (provided there are that many in the match expression)
 +
 
 +
==Other Links==
 +
 
 +
[[NI Number Validation]]

Latest revision as of 18:55, 1 December 2015

Personal tools