Thanks for the response! It took me a while, but your tip led to some nice improvements!
These are search expressions that at least partly work (without date):
**/.*[auth.etal:regex("\\."," & "):regex("\\etal","et al")].*\\.[extension] Captures: Author; Author & Author, but nothing with et al.
**/.*[auth.etal:regex("\\."," & "):regex("\\etal","et al.")].*\\.[extension] Captures: Author; Author & Author, but nothing with et al.
**/.*[auth.etal:regex("\\."," & "):regex("\\.etal","et al.")].*\\.[extension] Captures: Author; Author & Author, but nothing with et al.
Things that still do not work:
1. [date].
In this screenshot you can see that the above search expressions attach ANY file with filenames that include the author syntax from above.
Hence my need to include date or year. How to?
Expressions that would allow me to enter the date:
**/.*[auth.etal:regex("\\."," & "):regex("\\.etal","et al.")].*[DATE].*\\.[extension]
**/.*[auth.etal:regex("\\."," & "):regex("\\.etal","et al.")].*\\([DATE].*\\.[extension]
**/.*[auth.etal:regex("\\."," & "):regex("\\.etal","et al.")].*\\([DATE]\\).*\\.[extension]
If i replace [DATE] with [YEAR] it also works
Why these expressions still do not work:
- Unfortunately [DATE] seems to not honour filenames with YYYY and YYYY-MM very well. It mostly leads to files not being found or worse sometimes to error.
- [year] works a lot better without problems, as it only takes YYYY into account. Unfortunately it does not capture the instances when one author wrote more than one article in a given year.
What i want that i don’t know how to get. Probably enhancement for JabRef:
- What i really would want is a [DATE] linked file search that honours all three formats: YYYY-MM-DD, YYYY-MM and YYYY.
2. [pdf] instead of [extension].
I would like to exclude other file types and only attach pdf, but [pdf] seems not to be able to replace [extension].