-
shortforms: Rx, regex, regexp
Table of Contents [hide]
Notes ∞
- Adding an
ito the end of the string makes the regex comparison case insensitive. -
Inline comments are supported.
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.
Python regular expressions ∞
(Python)
Perl regular expressions ∞
(Perl)
-
Regular Expressions in Perl
Ruby regular expressions ∞
(Ruby)
-
- A regular expression testing web page.
I did some cool stuff. You can probably find some examples in https://github.com/spiralofhope/ruby-random/tree/master
Mythryl regular expressions ∞
(Mythryl)
I used my knowledge of Ruby regular expressions and expanded them into something specific, and extremely clean, for Mythryl. Check out my aborted Compiled Website Mythryl rewrite: https://github.com/spiralofhope/mythryl-compiled-website
Resources ∞
-
gatech Regular Expression Tutorial
- (archive) (increment the URL)
- zytrax.com Info on Regular Expressions

– A little cleanup.
– Referenced my Ruby scripting
– Referenced my Mythryl scripting