About customizing Regexlist.xml
The RegexList.xml file contains Regex
for determining a device's VTMOS. These expressions are all embedded
inside the <regexlist>
XML tags.
Regular expression (Regex) is a string that is used to describe or match a set of strings, according to syntax rules.
The XML files used to add support for new devices are parsed using an XML parser. XML has a special set of characters that cannot be used in normal XML strings, and must be replaced by an alternative set of characters. The following table identifies the characters that cannot be used in normal XML strings and their associated alternative characters:
XML character that cannot be used in normal XML strings | Alternative character |
---|---|
|
|
|
|
|
|
|
|
|
|
The following example shows an invalid XML string:
<value>model->2621<value>
This example shows a valid XML string:
<value>model->2621</value>
The >
(greater than symbol) in the first XML string
has been replaced with its alternative (>
)
in the second string. This makes the string valid.
The examples that follow describe how to:
- Configure a Regex for discovering a vendor, model, and os
- Configure a Regex for discovering a new vendor, model, and os