I'd like to find a way to replace a part of a string: I'd like to remove everything after a substring, like ",".
Example: If my input string is "Hello, world!"
, the output should be "Hello"
.
I was surprised to find a join
filter and not a split
one.
Do I need to write a custom filter or can I do it with a built-in filter (I can't find it)? Thank you.