replace characterset with regmatch

faster in v8