in reply to Parsing a log file
In that case, the regex to get the file type:
Would need to extract the last ".something". Sorry there is no code fragment - I am back in work after a really late night here - and the coffee hasn't done its stuff yet.$type = $1 if $results[3] =~ /(\.\w+)$/; # thanks, Ovid
Ken
|
|---|