<div dir="ltr"><div>I have a question on substring matching with the vendor class identifier, which seems easy enough, but the strings <i><b>can</b></i> have a variable length. This is also a problem for isc-dhcp apparently, in that you must indicate the range of the substring match. </div><div><br></div><div>I don't see in the docs any way to do a regex (which would be excellent). </div><div>However in the current function <b>substring( <i>option</i>, <i>start</i>, <i>end</i> )</b>, why specify the end index? </div><div>It should be able to determine the ending index from the string length which it is comparing to on the right. It would be a lot more flexible if I could say:<br></div><div><br></div><div><font face="monospace, monospace">substring(option[60].hex,0) == 'onie_vendor</font><span style="font-family:monospace,monospace">:powerpc-VendorX'</span><br></div><div><span style="font-family:monospace,monospace;font-size:x-small"><br></span></div><div>Here the test would know where to start matching, and can simply see that I am trying to match the option string value to a 27 character string, starting at index 0. This would be nice in that a user does not have to count the characters for each class. </div><div><br></div><div>Thoughts?</div><div><br></div><div>Thanks,<br>Jason</div></div>