Rubular now supports Ruby 1.9. Upgrade includes support for multiple Rubies and improved stability in the face of evil regexes. Read more »
Rubular
a Ruby regular expression editor
Regex quick reference
[abc] A single character of: a, b or c[^abc] Any single character except: a, b, or c[a-z] Any single character in the range a-z[a-zA-Z] Any single character in the range a-z or A-Z^ Start of line$ End of line\A Start of string\z End of string. Any single character\s Any whitespace character\S Any non-whitespace character\d Any digit\D Any non-digit\w Any word character (letter, number, underscore)\W Any non-word character\b Any word boundary character(...) Capture everything enclosed(a|b) a or ba? Zero or one of aa* Zero or more of aa+ One or more of aa{3} Exactly 3 of aa{3,} 3 or more of aa{3,6} Between 3 and 6 of aoptions: i case insensitive m make dot match newlines x ignore whitespace in regex o perform #{...} substitutions only once
For a complete Ruby regex guide, see the Pickaxe.
Made by Michael Lovitt (@lovitt). For questions, comments, or issues, visit the Google Group. Follow updates at Twitter (@rubular). Donate via Paypal.
You're using Rubular in modal mode.
