Content deleted Content added
Line 8:
== Conventions ==
The following conventions are used in the examples.<ref name="clarify000">The character 'm' is not always required to specify a
metacharacter(s) ;; the metacharacters column specifies the regex syntax being demonstrated
=~ m// ;; indicates a regex '''match''' operation in
=~ s/// ;; indicates a regex '''substitution''' operation in
Also worth noting is that these regular expressions are all Perl-like syntax. Standard [[Regular_expression#POSIX_Basic_Regular_Expressions|POSIX]] regular expressions are different.
== Examples ==
Line 20:
Unless otherwise indicated, the following examples conform to the [[Perl]] programming language, release 5.8.8, January 31, 2006. This means that other implementations may lack support for some parts of the syntax shown here (e.g. basic vs. extended regex, \( \) vs. (), or lack of \d instead of [[POSIX]] [:digit:]).
The syntax and conventions used in these examples coincide with that of other programming environments as well (e.g., see ''[[Java]] [[O'Reilly_Media#In_a_Nutshell|in a Nutshell]]'' — Page 213, ''[[Python]] Scripting for Computational Science'' — Page 320, Programming [[PHP]] — Page 106).
<table class="wikitable">
Line 321:
{{DEFAULTSORT:Regular Expression Examples}}
[[Category:Perl]]
[[Category:
[[Category:Articles with example code]]
[[Category:Programming constructs]]
|