solve problem in regex.

solve problem in regex.