Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fix = re.compile(r'((?<=>)(\n[\t]*)(?=[^<\t]))|(?<=[^>\t])(\n[\t]*)(?=<)')
- fixed_output = re.sub(fix, '', input_string)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement