News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.

Post Reply  Post Thread 
match one of three possible substrings?
Author Message
Senior Member

Posts: 522
Group: Registered
Joined: Apr 2007
Status: Offline
Reputation: 5
Post: #1
RE: match one of three possible substrings?

Thanks for the pointers.
It still seems to be overkill to first match all similar extensions, including ppf, ppg, pnf, png, pig, pif, jng, jif, ...
...and then check for the three desired extensions. The same result could be obtained by grabbing the filename extension regardless of what it is, if you are then simply going to compare it with ".png", ".jpg" and ".gif"

I'm guessing this is not going to be as straightforward as using "typical" regular expressions, but i still get the feeling that it could be made simpler than it is.

I'll look at match/gmatch to see what can be done there.

06-11-2007 12:44 AM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
RE: match one of three possible substrings? - mikshaw - 06-11-2007 12:44 AM

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: