Feature request: Regex/GREP-based search and replace for bulk metadata cleaning

Feature request: Regex/GREP-based search and replace for bulk metadata cleaning

EndNote would benefit greatly from proper regular-expression/GREP-style search and replace for reference fields, especially when working with large libraries.

A common problem is that publishers and databases populate the same field inconsistently. For example, .ris imports from Elsevier place a full DOI URL in the DOI field:

https://doi.org/10.xxxx/example

while others (e.g., Taylor & Francis, or Emerald) correctly store only:

10.xxxx/example

In a large EndNote library, normalising such differences manually is unnecessarily difficult.

It would be extremely useful if EndNote’s Find and Replace functionality supported regular expressions, ideally with capture groups and replacement expressions.

For example:

Find:
^https?://(?:dx\.)?doi\.org/(.+)$

Replace:
$1

This would convert:

https://doi.org/10.xxxx/example

to:

10.xxxx/example

More generally, useful capabilities would include:

  • regular-expression matching
  • capture groups and backreferences
  • anchors such as ^ and $
  • case-sensitive and case-insensitive matching
  • field-specific replacements
  • previewing affected references before applying changes
  • applying changes to selected references only
  • undo support or an automatic backup before bulk changes

This would be valuable well beyond DOI cleaning. Bibliographic metadata imported from publishers, Crossref, databases and RIS/BibTeX files frequently contains small but systematic inconsistencies in URLs, identifiers, page numbers, editions, dates, journal names and other fields.

For users maintaining large EndNote libraries, regex-based transformation would make it possible to normalise these fields safely and efficiently rather than editing hundreds or thousands of references individually.

This is related to another suggestion concerning conditional logic in output styles, but I see it as a separate capability: one concerns how EndNote outputs metadata, while this request concerns how users can clean and transform stored metadata.

I think that preview before replace and undo/backup, is quite important, because once regex replacement is allowed across thousands of records, those become important safeguards.

The way Endnote treats DOI currenlty is somewhat absurd, as it is defined as a structured bibliographic field, yet users can easily end up with two different representations of the same identifier depending on the import source. A mature reference manager should make bulk normalisation of that kind straightforward.