The generate-by-regex function generates a source with a specified value, but only if an existing source matches a regular expression.
The parameters used with the generate-by-regex function and their description are:
Name of the source to generate.
Value to assign to dst.
Source against which to match.
Regular expression string to compare to src.
The following example sets the classification to Siroe if the host name matches the regular expression *.siroe.com. For example, resources at both developer.siroe.com and home.siroe.com will be classified as Siroe:
Generate fn="generate-by-regex" match="\\\\*.siroe.com" src="host" value="Siroe" dst="classification" |