On 8/17/07, <b class="gmail_sendername">Harald Hoyer</b> <<a href="mailto:harald@redhat.com">harald@redhat.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>ok, with the attached perl script, I quickly spotted for my packages:</blockquote><div><br>Cool.  I briefly toyed with this problem yesterday but am unlikely to have a chance to improve my script in the next few days, so I'll just post it now because it has some architectural differences to yours.
<br><br>* I have a feeling that regular expressions are only going to be part of the answer.  Files out there are messy.  Turns out Python has this neat "difflib" library for fuzzy text matching.<br></div></div>
* It operates on all files, not just *.[ch]<br>* It uses Python's leet generator functionality to cleanly mix traversing a directory tree and searching<br><br><br>