I have this List in Scala:
List[String] = List([[aaa|bbb]], [[ccc|ddd]], [[ooo|sss]])
And I want to obtain the same List with the substrings between | and ] removed and | removed too.
So the result would be:
List[String] = List([[aaa]], [[ccc]], [[ooo]])
I tried something making a String with the List and using replaceAll, but I want to conserve the List.
Thanks.