# match: (?<!;|,|\{|\}|\s)(?!^\s)\s*$ # For previous symbol if this isn't ';', ',', '{', '}', 'space', 'tab' or 'newline', and the next symbol isn't a 'space', 'tab ...