Rogue_Phoenix Posted July 31, 2009 Share Posted July 31, 2009 Does anyone know if there is a way of setting a wildcard character to replace part of a file name? i have a series of file names that start "deleted." and i want a way to select all of them I was thought it would be something along the lines of "deleted.*" but that hasnt worked does anyone have any ideas? Link to comment https://forums.phpfreaks.com/topic/168263-solved-filename-wildcard-character/ Share on other sites More sharing options...
GingerRobot Posted July 31, 2009 Share Posted July 31, 2009 You can use wildcards with the glob function. Link to comment https://forums.phpfreaks.com/topic/168263-solved-filename-wildcard-character/#findComment-887494 Share on other sites More sharing options...
Rogue_Phoenix Posted July 31, 2009 Author Share Posted July 31, 2009 I managed to fix it using the ereg() function, thanks for the glob() idea though Link to comment https://forums.phpfreaks.com/topic/168263-solved-filename-wildcard-character/#findComment-887542 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.