Hallo, I have a question concerning searching in Jabref. Is it possible to search for papers in several years? For example if I need to list papers published within years 2005 - 2011. Thanks, Petr
Yes, it is possible. You have to use the regular expression search (a box to check on the search tool bar).
However, the syntax is not straightforward (it is coming from java regex).
For your case,
year == 200[5-9]|201[0-1] should work.
200[5-9]specifies years 2005 to 2009.
201[0-1]specifies years 2010 to 2011.
This has to be added into the documentation! I was looking for ways how can I do this, and all I’ve found was how to search for a given year. Many user will think at the year field as an integer, instead of a string, and even fewer would develop the idea, which has just been presented above.
@horror-vacui Feel free to add it to the documentation: https://docs.jabref.org/finding-sorting-and-cleaning-entries/search#regular-expressions
Just click on the “Edit at github” link and you can modify the help page
year == 201[8-9] returns nothing, but
year == 2019 do.
Was there any change in the search implementation which was not added into the help, or could it be a bug in my current version?
Does it work for you in a newer jabref version?
Linux 5.11.5-051105-generic amd64
year == 200[5-9]|201[0-1] works for me.
Note that the “regular expression” button has to be activated.
Note also that there was a bug in the dark mode: activated was in fact deactivated, and vice-versa.
Linux 4.19.0-16-amd64 amd64
Thanks! The regex button was not activated. Now it works!