On Thu, 2021-03-25 at 16:29 +0000, rick@xxxxxxxxxxxxxx wrote:
> Thank you Michael. I like the idea of keeping the processing cost
> constant
> but I was going to use regular expressions in my map, so I may still
> have to
> loop through the lookup structure.
An alternative to consider is to put your input document into a map and
check each map key against all the tokens.
Liam
--
Liam Quin,B https://www.delightfulcomputing.com/
Available for XML/Document/Information Architecture/XSLT/
XSL/XQuery/Web/Text Processing/A11Y training, work & consulting.
Barefoot Web-slave, antique illustrations: B http://www.fromoldbooks.org
|