Jon
1
Hi,
I have this as the 1st line of a filter
<$list filter=[regexp:text[Footnotes##myref1]]>
to find ‘myref1’ references, but I’ve discovered that it’s also finding ‘myref11’, ‘myref12’ etc.
What do I need to include to get an exact match?
Regards
Jon
G’day Jon,
Sounds like you need something along the lines of:
<$vars expression=“Footnotes##myref1([^0123456789]|\b)”>
<$list filter="[regexp:text]">
{{!!title}}
</$list>
</$vars>
Some alternatives that are more compact:
<$vars expression=“Footnotes##myref1([^0-9]|\b)”>
<$list filter="[regexp:text]">
{{!!title}}
</$list>
</$vars>
<$vars expression=“Footnotes##myref1(^\d|\b)”>
<$list filter="[regexp:text]">
{{!!title}}
</$list>
</$vars>
1 Like