I am really bad with regex but here is what i am trying to acheive
StringOne = [5, -, e, 4, e, e, 0, 5, 3, 5, e, b, e, e, 5, 0, a, 4, 3, 3, 1, 9, 0, 8, 1, b, 3, 6, 1, b, 3, 6, 4, d, 3, 3, -, 2, 0, c, c, 1, c, 1, -, ., 8, 3, -, 4, 8, 4, 3];
And I want to remove everything but numbers, characters and '-'
I found an answer to save characters and number by doing this
StringOne = StringOne.replaceAll("[^a-zA-Z0-9]", "");
But I also want to save '-'
Is there some way I can add that to the regex or a regex that would remove '[' ',' ']'