PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
When dealing with wildcards on a command line using ls or whatever, is it possible to using regex, extract the extension(s) of files that are currently being sought???
Is it safe to just use a simple substr() and extract everything after the first '.'???
I've read up on using unix wildcards and it seems pretty flexible...which made me think impossible to parse using regex - I should say to always extract the extension(s) being searched...
I don't suppose you would care to show me the regex required for such a task - if indeed you can perform such an extraction...