Sure, you can extrnalize the regular expression and store it in resource element (or configuration element). But be aware that:
- reading the value stored in the resource or configuration element require some script code to be written
- once you fetch the stored regular expression, you won't be able to use it using the same in-place syntax as before. Instead, you should use it together with the RegExp class