Get short, timely messages from Regular Expression .

Twitter is a rich source of instantly updated information. It's easy to stay updated on an incredibly wide variety of topics. Join today and follow @RegexTip.

Get updates via SMS by texting follow RegexTip to 40404 in the United States
Codes for other countries

Two-way (sending and receiving) short codes:
Country Code For customers of
Australia
  • 0198089488 Telstra
Canada
  • 21212 (any)
United Kingdom
  • 86444 Vodafone, Orange, 3, O2
Indonesia
  • 89887 AXIS, 3, Telkomsel
Ireland
  • 51210 O2
India
  • 53000 Bharti Airtel, Videocon
Jordan
  • 90903 Zain
New Zealand
  • 8987 Vodafone, Telecom NZ
United States
  • 40404 (any)

RegexTip

  1. Four tips for learning regular expressions bit.ly/Xn7UH
  2. A dot matches any single character. For example, /r.de/ matches 'ride', 'rode' etc.
  3. ? means a character or expression is optional, i.e. zero or one repeats. Example: /ab?c/ matches 'ac' and 'abc' but not 'abbc'.
  4. * means zero or more repeats. Ex: /ab*c/ matches 'ac', 'abc', 'abbc', etc.
  5. Languages have minor variations in their regex support. @RegexTip mostly sticks to the common features of Perl, C#, Python, JavaScript, ...
  6. Languages have minor variations in their regex support. @RegexTip mostly sticks to the common features of Perl, C#, Python, JavaScript, etc.
  7. RT @lizardbill: Perl Compatible Regular Expression (PCRE) in Python ow.ly/b7yVQ
  8. Next week, @RegexTip starts over with the basics of regular expressions.
  9. The -f option in grep lets you specify a file of regular expressions, one per line.
  10. zgrep searches for regular expressions inside a compressed file.
  11. A pair of numbers in curly braces specifies a range of repetitions. For example, \d{2,5} matches from two to five digits.
  12. Using regular expressions in Mathematica bit.ly/4Cftip
  13. A number in curly braces repeats a pattern that many times. Example: \d{3} is the same as \d\d\d.
  14. A regex that tests numbers for prime numbers: bit.ly/4niMT2
  15. Emacs regular expression tutorial ow.ly/aV8ln
  16. All look-arounds start with '(?' then optionally have '<' for 'behind'. Then '=' for positive and '!' for negative.
  17. Using regular expressions in R bit.ly/8XdUan
  18. Mnemonic for look-behind syntax: just like look-ahead, but with a '<' after the question mark to indicate 'behind'.
  19. Negative look-behind is denoted (?<! ... ). Example: (?<!L)\d{3} matches three digits not preceded by an 'L'
  20. Thanks for following! @RegexTip now has over 10,000 followers.