Optimization RegExp pattern