use strict; while(<*.*>) { $extension =~ /\.([^\.]+)$/g; push(@extarray, $1); } print join("\n", @extarray);
janitored by ybiC: Balanced <code> tags around codeblock
In reply to Re: regex to return file extensions
by Anonymous Monk
in thread regex to return file extensions
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |