Case and Space insensitive(Advanced PDF)

<td align=”right” style=”border-right: 1px;”>

  <#if !(item.description?lower_case?matches(“.*bleads*genb.*”))>

    ${item.quantity}

  </#if>

</td>

This code checks if the description of the item contains the phrase “lead gen” as a separate word, ignoring the case and considering any number of spaces between “lead” and “gen”. If the description does not contain “lead gen” as a separate word, the quantity of the item is displayed. If the phrase “lead gen” is found as a separate word in the description, the quantity is excluded from being displayed.

Leave a comment

Your email address will not be published. Required fields are marked *