If you are trying to do something like this, you can first narrow it down with glob, and then get exact matches with a full flavored regex engine. With pcre regex you can do ~^a+\.php$~ to return For instance, if you have the following files: Glob's regex does not offer any kind of quantification of a specified character or character class or alternation. Text.php and tense.php would be returned from that glob. ![]() GLOB_NOESCAPE - Backslashes do not quote.GLOB_NOCHECK - Return the search pattern if no.When this flag is not used, the pathnames are GLOB_NOSORT - Return files as they appear in theĭirectory (no sorting).GLOB_MARK - Adds a slash (a backslash on Windows) to each directory returned. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |