add a small piece of code for regex in small_regex