What is the best way to split a string like \"HELLO there HOW are YOU\" by upper case words (in Python)?
\"HELLO there HOW are YOU\"
So I\'d end up with an array like such:
Your question contains the string literal "\b[A-Z]{2,}\b", but that \b will mean backspace, because there is no r-modifier.
"\b[A-Z]{2,}\b"
\b
Try: r"\b[A-Z]{2,}\b".
r"\b[A-Z]{2,}\b"