my regex flaw exposes another?
Català
Dansk
Deutsch
Ελληνικά
English
Español
suomi
Français
Galego
magyar
Italiano
日本語
Nederlands
Polski
Português
Português Brasileiro
Tämä viesti kuuluu seuraavaan säikeeseen:
Näytä säikeen viestit aikajärjestyksessä
David A. Sinck
2002-03-06 21:07
Liitteet:
Viesti alkuperäisessä muodossaan
(text/plain)
Lähettäjä:
Kevin Buettner
Päiväys:
2002-03-06 21:26
UTC
Aihe:
my regex flaw exposes another?
On Mar 6, 4:04pm, Mike wrote:
> [...] I was trying to exclude
> both the ".", "..", and a directory called "approved".
[...]
> next if ($file =~ /(^\.)(approved)/);
Try:
next if ($file =~ /^(\.\.?|approved)$/);
(Untested.)
Kevin