Created
February 14, 2018 08:42
-
-
Save infontology/3829b900f7143138d6df409e2f35ccb8 to your computer and use it in GitHub Desktop.
Slår ihop s p ä r r a d text till vanlig stil
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pattern = re.compile('(?<=\s\S)\s(?!\S\S)', re.S) | |
re.sub(pattern, '', text) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fan vad jag inte gillar regex