I have a list of server names that I want to create a regex match against.  It could be done by hand, but the list changes (adds, removes) on a weekly basis.<div><br></div><div>Does anyone know of a program that can take a list of matches and create a regular expression that will match them?</div>

<div><br></div><div>Example:</div><div>OMAWWW001</div><div>OMAWWW002</div><div>OMADNS001</div><div>ORDWWW001</div><div><div>ORDWWW002</div></div><div><div>ORDWWW003</div></div><div>ORDDNS001</div><div>ORDDNS002</div><div>

<br></div><div>I guess the "shortest" match would be /O.......[123]/ but it's kinda 'loose'.</div><div><br></div><div>I *think* what I'd like is something like this: /O[MR][AD][WD][WN][WS]00[123]/</div>

<div>(But a smarter regex tool might find something tighter...)</div><div><br></div><div>What I *don't* want is: /OMAWWW001|OMAWWW002|...|ORDDNS002/</div><div>I don't have enough space in my tool for a 10K long string! :)</div>

<div><br></div><div>Any thoughts?</div><div><br></div><div>Thanks,</div><div>DanL<br clear="all"><div><br></div>-- <br>***************** ************* *********** ******* ***** *** **<br>"Quis custodiet ipsos custodes?"<br>

    (Who can watch the watchmen?)<br>    -- from the Satires of Juvenal<br>"I do not fear computers, I fear the lack of them."<br>    -- Isaac Asimov (Author)<br>** *** ***** ******* *********** ************* *****************<br>


</div>