With this
string "x | AAA BBB cc dddd ... |", where between the vertical pipes is an arbitrary combination of characters and spaces, I tried
match(/\|[\/S ]+?\|/), which did not, and should not, match.
But then I tried
match(/\|[\/S ]+\|/) which did not match, much to my surprise, given the greedy nature of the + quantifier.
So then I tried
match(/\|[\/S ]+(?=\|)/), which did not match either.
Thanks in advance for any insight you can provide.