In Perl’s regex flavor, and compatible flavors, you can use a special construct to create conditional if-then-else regular expressions.| www.regular-expressions.info
Learn how to use regular expressions with Ruby and the Ruby Regexp class| www.regular-expressions.info
In a regular expression, shorthand character classes match a single character from a predefined set of characters.| www.regular-expressions.info