moved a regex compilation
moved a regex compilation


Former-commit-id: eb033e629d5b38770da02ce04d6e7475e24b04c4 [formerly 78bdd387dd9cb9b9eb8eb1be06287803663be89f]
Former-commit-id: 2577aa916d6009822196bba9a9b39c38a9fdeaf6
gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine