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
Or using a regular expression