-
shortforms: Rx, regex, regexp
Comparison ∞
Language | word | words | numbers |
---|---|---|---|
Tcl | %w |
%s |
%d |
Ruby | \w+ |
(\w|\W)+ |
\d+ |
-
A word.
- Ruby includes numbers as words.
-
One or more words.
- Ruby includes numbers as words.
-
One or more numbers.
Notes ∞
- adding an
i
to the end of the string makes the regex comparison case insensitive. -
Inline comments are supported.
Regular expression resources ∞
-
gatech Regular Expression Tutorial
- (archive) (increment the URL)
Python ∞
(Python)
-
[http://wayback.archive.org/web/20080926105402/http://www.amk.ca:80/python/howto/regex/regex.html |Regular Expression HOWTO]] -- For Python
Perl ∞
(Perl)
-
Regular Expressions in Perl
Ruby ∞
(Ruby)
-
- A regular expression testing web page.