in reply to Re^2: Extract sequence of UC words?
in thread Extract sequence of UC words?
Note that the regex expression [A-Z\|\s+] defines a set of characters that includes the '|' ('pipe') character. Within a character set, the pipe has no special meaning; i.e., it is not the regex alternation metacharacter.