Metadata and columns

A script to extract values from a file name as new columns already exists so you would not need to write it. Its here Column - Custom Text and Regexp - #22 by wowbagger.
You would need to write a regexp for each value you want to extract but we can help you with that.