Hi Scott,

I noticed that RegEx provides an "opposite" match type of thing by using
the ^ within a set [].  Does it provide something to 'reverse' the entire
thing?  So I could do one Dir read using ".*xls$". And then another one
using something like NOT ".*xls$".

It's probably possible to come up with a regex that matches, but I think it'd be easier to modify the service program, rather than come up with a fancy regex.

Just clone IFS_readdir(), make your own copy that returns all files, but also returns a flag indicating whether it matches the regex or not. That way, the calling routine can act differently on the filename if it matches than if it doesn't.

Shrug.. this would take me 5 minutes to code, so if you're stuck, let me know and I'll code it.

---
Scott Klement  http://www.scottklement.com


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.