Learn how to use regular expressions with conditional logic.