Remove Whitespace from Start and End - alternate solution mysteriously fails test

you can’t use capture group in an OR situation, because if the first member of the OR is not capturing, then \1 will also be empty, it will never match spaces at the end

1 Like