use regular expression instead of prefix.