Changes

Regular expression support

No change in size, 21:07, 31 January 2008
m
Reverted edits by 62.231.243.137 (Talk); changed back to last version by WPKGSysop
Quick examples:
<host name="b[0-9] +" profile-id="profile" />
works for: b1, b10, b100
<host name=". +" profile-id="profile" />
works for *all* hosts - use with care (!), place at the bottom of hosts.xml
<host name="b. +" profile-id="profile1" />
works for "b10", "b11", "b12345" etc.
<host name="b. +" profile-id="profile2" />
<host name="bronek1" profile-id="profile1" />
<host name="bron. +" profile-id="profile3" />
Normally, hosts are parsed from top to the bottom, except when the hostname is not a regular expression.
So host "bronek1" will match "profile1", even though it also matches "b. +" and "bron. +" (which are regular expressions).
Now it matches "pc", and only "pc".
To match "pc001", "pc002", "pcABC", you have to use "pc. +".