Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Brendan / fix toprettyxml()
a guest
Jun 1st, 2010
1,503
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Python
0.12 KB
| None
|
0
0
raw
download
clone
embed
print
report
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
Public Pastes
Free Crypto Method
CSS | 7 min ago | 0.91 KB
Secrets.psafe3
10 min ago | 236.43 KB
Secrets.kdbx
10 min ago | 97.72 KB
2026 AI MONEY MACHINE
CSS | 14 min ago | 0.91 KB
FREE BTC STRATEGY
CSS | 21 min ago | 0.91 KB
+45,600$ in 3 days
CSS | 29 min ago | 0.91 KB
Untitled
32 min ago | 7.19 KB
+218,600$ in 3 days
CSS | 32 min ago | 0.94 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!