regex starts by symbol code example Example 1: regular expression starts and ends with same symbol /^(a|e|i|o|u).*\1$/ Example 2: regex starts with { "Category" : /^ABC.*/ }