Registering regular expressions
You can register regular expression files with the application by adding a new context parameter for each regular expression file in the <runtime_sandbox>/repository/eardata/smcfs/extn/web.xml file.
Use one of the following ways to add a new context parameter for each regular expressions file in
the <runtime_sandbox>/repository/eardata/smcfs/extn/web.xml file:
<context-param>
<param-name>scui-regex-file-<unique-identifier></param-name>
<param-value><file-path-inside-webapp>::<load order></param-value>
</context-param>
OR
<context-param>
<param-name>scui-regex-file-unique-identifier</param-name>
<param-value><fully-qualified-name-of-the-file>::<load order></param-value>
</context-param>
where <load order> defines the order in which the regular expressions file must be loaded. File having the least load order will be read first. Multiple files can have same load order. If no load order is defined, the system considers it to be zero.
Note: You must use a load order over 500 to register
the regular expression files.
For example,
<context-param>
<param-name>scui-regex-file-fwk-1</param-name>
<param-value>/WEB-INF/regex1.xml</param-value>
</context-param>
<context-param>
<param-name>scui-regx-file-fwk-2</param-name>
<param-value>/WEB-INF/regex2.xml::1</param-value>
</context-param>
<context-param>
<param-name>scui-regx-file-fwk-3</param-name>
<param-value>/com/test/regex-used-from-datatypes.xml::2</param-value>
</context-param>
Note: The regular expression files containing regular expressions, which are being
referenced from the datatypes.xml file, must be kept inside a JAR and the JAR
must be available in APP dynamic classpath. The regular expression files containing other rules
(which are not being referenced from datatypes.xml file) must be kept inside
the <runtime_sandbox>/repository directory. IBM® recommends that
you keep such files inside the EARFILE/WARFILE/WEB-INF directory to make them
inaccessible by HTTP access.