Defining custom regular expression error message provider

You can provide a custom error message provider by creating an instance of the error message provider class.

This is an optional task. The error message provider class must implement the ISCRegexErrorMessageProvider interface. Also, the error message provider class must be registered with must be registered with the application by adding a new context parameter in the web.xml file (located in the <runtime_sandbox>/repository/eardata/smcfs/extn/ directory) as follows:

<context-param>
      <param-name><scui-regular-expression-error-message-provider></param-name>
      <param-value><fully-qualified-class-name></param-value> 
</context-param>
For example,
<context-param>
    <param-name>scui-regular-expression-error-message-provider</param-name>
    <param-value>com.text.RegExErrorMsgProvider</param-value> 
</context-param>
Note: Error messages returned by the error message provider class must be bundle keys. The error message will be localized and formatted with regular expression being passed as the first formatter and the input being validated as the second formatter.