Get 80 characters from string, Respecting full words



  • Hi, I can use 'Get substring' to fetch the first X characters from a title, however, this will often cut a word in half at the end. For example

    Catalogue of the Highly Important Collection

    Will result in

    Catalogue of the Highly Important Colle

    Is there a feature in BAS to extract the first X characters and stopping at the last complete word i.e.

    Catalogue of the Highly Important



  • @Insight said in Get 80 characters from string, Respecting full words:

    Hi, I can use 'Get substring' to fetch the first X characters from a title, however, this will often cut a word in half at the end. For example

    Catalogue of the Highly Important Collection

    Will result in

    Catalogue of the Highly Important Colle

    Is there a feature in BAS to extract the first X characters and stopping at the last complete word i.e.

    Catalogue of the Highly Important

    It can be solved through the "List" module

    65038921-f79d-4f4b-9bfd-1ea02e4b0f2a-изображение.png

    2317.xml

    Or using a regular expression

    6fa11158-4119-40ce-a78e-e94792950b4d-изображение.png


Log in to reply