I’m trying all sorts of things with no luck, so I thought I’d ask for some help.
I want to split a string anytime there’s a “b” in “abc”, but not in " b ". I.e., when a “b” is surrounded by whitespace, I don’t want it to be a splitting character, but an element in the array returned by the split.
String.split("abcde", regex) == ["a", "cde"]
String.split("a b cde", regex) == ["a", "b", "cde"]
So I need (I think) a way to craft a regex that looks for abc, but only splits on the b part.






















