Improving the Regular expression Execution Sequence