S
Shapper
Hello,
I have a string with words separated by dashes:
"this-is-an-example-and-it-is-possible-to-make-it-work"
I need to:
1 - Remove all words with less than 3 letters;
2 - Make the string less than 20 characters.
But never breaking a word or ending in a dash.
How can I do this?
Thank You,
Miguel
I have a string with words separated by dashes:
"this-is-an-example-and-it-is-possible-to-make-it-work"
I need to:
1 - Remove all words with less than 3 letters;
2 - Make the string less than 20 characters.
But never breaking a word or ending in a dash.
How can I do this?
Thank You,
Miguel