regular expression in if else javascript code example Example: regex for strings with specific letters javascript let re = /ab+c/;