in reply to Re^2: how to check whether a particular word exists in filename
in thread how to check whether a particular word exists in filename

Nope! Not true.

That is because in the character class [A-Za-z0-9] there is no underscore, and Preceptor assumed that would be equivalent to \w .
\w , however, is [A-Za-z0-9_] and thus includes the underscore.

Cheers, Sören

(hooked on the Perl Programming language)

  • Comment on Re^3: how to check whether a particular word exists in filename