in reply to Re^2: Formatting Regex for File::Find::Rule
in thread Formatting Regex for File::Find::Rule
'*.*' does continue and returns files as expected
'*.*' is being expanded to a regular expression by File::Find::Rule (more specifically, by glob_to_regex from Text::Glob): m{(?^:^(?=[^\.])(?:(?!\/).)*\.(?:(?!\/).)*$)}
Do you have any ideas as to why I can't get qr// to work inside name()?
->name( qr/LOG|cache|AVCHD/ ) works for me the same as my array suggestion above - like I said it won't work if you keep the slashes in.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Formatting Regex for File::Find::Rule
by springgem (Novice) on Apr 09, 2021 at 16:59 UTC | |
by haukex (Archbishop) on Apr 09, 2021 at 17:32 UTC |