optimization of regexp
update doc