extract_filename: Extract Information From File Name
Description
This function split a string (file name) as per the requirement of the user. It is useful to extract informations like compound name, plate number etc from the file name.
regular expressions at which filename has to be split to create different sections.
end
extension (end portion) of filename that need to be removed.
remove
section that need to be omitted after splitting the filename.
sep
symbol to be added to separate sections (obtained after splitting) before combining (default is "-").
Value
A character vector. First element is the unsplit 'filename'. Second element is the processed 'filename'.Other elements are different sections after splitting the 'filename'.