Hi all,
I'm looking to trim a string to max. 35 characters.
Actually 34 characters and ending with a "." to indicate the string has been shortened.
What transformer can I use? Or does this require some RegEx?
Thanks,
Ed
Hi all,
I'm looking to trim a string to max. 35 characters.
Actually 34 characters and ending with a "." to indicate the string has been shortened.
What transformer can I use? Or does this require some RegEx?
Thanks,
Ed
Best answer by david_r
You could create a small custom transformer which could contain a StringLengthCalculator, a Tester (_length > 34), which, if true, would use a SubstringExtractor to get the first 34 characters and then add the point.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.