Element Dictionary Regular Expression Component

Dictionary entity component that not only validates against the dictionary, but also parses through a provided regular expression.

Name

Type

Required

Description

File Name

String

Yes

Name of the file containing valid values for the component.

Pattern

String

Yes

Regular expression to search with.

Template

String

Yes

Template that defines how to recompose the value to be matched against the dictionary. The template uses strings and the $n construct to put either the desired string or group matched during regexp matching. Group are numbered from 1. Example: PSC might be defined as (\d\d\d)[]?(\d\d), so the template will be $1$2 to remove the possible space. To place either $ sign into the result, escape it with a backslash character (\). The whole matched string is available as $&.


iWay Software