It's possible to extract information from the file name and add it to the list of tags extracted from the file itself and eventually "autofill" these tags. Regular expressions provide the needed flexebility to the information parsing but introduce some complexity. In order to simplify the creation of the regular expression needed to parse the file the simplified entry is provided that will generate regular expression for you. Simplisity comes with limitations, only simple file names can be parsed that way. The simple entry syntax is:
tag names are encoded in between "%" like this: %tag_name% everything outside should match the file. For example: For the file name: "GFAP_DAPI_2007.tif" simple expression would be: "%antibody1%_%antibody2%_%year%.tif" and will produce tags like this: "antibody1=GFAP", "antibody2=DAPI" and "year=2007".
Although this notation will not be able to parse the file name like this: "GFAPDAPI2007.tif", in order to do this we will need regular expressions.
In order to get tags you will have to create groups delimited by "()". This groups have to be named in order to appear in the tag-value list: "(?P<tag_name>XXX)" and then in the area indicated by XXX you may place necessary parsing information. The full description of types of parsing characters is given in Helpful links.