Hi,
I’m generating titles using ChatGPT, and I want to ensure that each title meets the following conditions:
The total character count should not exceed 140.
The title should include no more than one &
character.
I’ve successfully used the length() function filter to enforce the character limit. However, I’m struggling to create a filter that checks if the title contains more than one &. If it does, I want the scenario to regenerate the title.
Does anyone have a suggestion on how to implement this filter for counting &
characters?
Thanks!