using Regex in an if else statement - Kevin Powell - Community