[Evergreen-dev] Regular Expressions in print templates

Benjamin Kalish bkalish at forbeslibrary.org
Fri Jul 16 09:56:54 EDT 2021


I'm trying to use regular expressions in a print template, but I can't
figure out what is supported. replace() is clearly supported for strings,
because {{ "catalog".replace("alog","s"); }} gives cats, but all my
attempts with regular expressions have failed, whether I use RegExp() or
the slash notation.

Is there a way to use regular expressions in print templates? They would be
oh so useful here!

Benjamin Kalish
Forbes Library
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.evergreen-ils.org/pipermail/evergreen-dev/attachments/20210716/83816353/attachment.html>


More information about the Evergreen-dev mailing list