The generate-by-regex function generates a source with a specified value if an existing source matches a regular expression.
Name of the source to generate
Value to assign 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 are classified as Siroe:
Generate fn="generate-by-regex" match="\\\\*.siroe.com" src="host" value="Siroe" dst="classification"