Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Dec 6th, 2016
62
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.13 KB
| None
|
0
0
raw
download
clone
embed
print
report
#用正则简单过滤html的<>标签
import re
str = "<img /><a>srcd</a>hello</br><br/>"
str = re.sub(r'</?\w+[^>]*>','',str)
print str
Add Comment
Please,
Sign In
to add comment
Public Pastes
Orbit Around Object 2
C# | 11 min ago | 0.24 KB
Orbit Around Object
C# | 12 min ago | 0.18 KB
wave up and down
C# | 14 min ago | 0.29 KB
Pathfinding follow
C# | 15 min ago | 0.92 KB
New solution tie column
Scheme | 27 min ago | 0.37 KB
Untitled
C# | 43 min ago | 22.28 KB
data901
JSON | 45 min ago | 0.64 KB
Untitled
Python | 45 min ago | 0.38 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!