Legacy platform

Define regular expressions in the application

You can define regular expressions for the application.

In the application, regular expressions are defined in the wsc_regularexpressions.xml file. The wsc_regularexpressions.xml file is in the <INSTALL_DIR>\repository\eardata\wsc\war\WEB-INF\regularexpressions directory.

For example, a regular expression for a non-open form widget in the wsc_regularexpressions.xml file is defined as follows:
<RegularExpression id="sc-parameter-value-pattern"
javaPattern="^[A-Za-z0-9[->_\s.!,/+=()'\&quot;@\\:;&\[\]\u007F-\uFFFF]]*$"
jsPattern="^[a-zA-Z0-9->_\s.!,/+=()'\&quot;@\\:;&\[\]\u007F-\uFFFF]*$" />
<RegularExpression id="open-text-param-value-pattern" jsPattern="^(.*[\s]*)*$"/>
Note: This is the default regular expression for validating all the parameter values in the application. However, if you want the regular expression to accept more characters, you can customize the default regular expression.
The regular expression for an open form widget in the wsc_regularexpressions.xml file is defined as follows:
<RegularExpressions>
			<RegularExpression id="open-text-param-value-pattern"
		jsPattern="^(.*[\s]*)*$"/>
</RegularExpressions>