CARVIEW |
Select Language
HTTP/2 200
date: Mon, 13 Oct 2025 14:33:19 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=0da26bc1d7201883a7a91cb460556ce519518ee8f68f29fe3ddb3705fc1fa847a%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22wecXKnU9XqGN6zg1j5P7vQ_TMrA0dJi8%22%3B%7D; HttpOnly; Path=/
cf-ray: 98df8d237d71343c-BLR
Python 2 去除 SumatraPDF 设置无用路径 - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from __future__ import unicode_literals
- import io
- import re
- import os
- import sys
- def parse(file, encoding='UTF-8-SIG'):
- valid = []
- text = io.open(file, encoding=encoding).read()
- nav_whole = re.match(r'(.*?)(FileStates \[.*?^\])(.*?\Z)', text, re.S | re.M)
- chunk_pat = re.compile(r'(?P<prev>\s*\[\s*FilePath = )(?P<path>.*?$)(?P<last>.*?Favorites \[.*?\].*?\]\n)', re.M | re.S)
- for mat in chunk_pat.finditer(nav_whole.group(2)):
- if os.path.exists(mat.group('path')):
- valid.append(mat.group())
- with io.open(file, 'w', encoding=encoding) as outfile:
- outfile.write(nav_whole.group(1))
- outfile.write('FileStates [\n')
- outfile.writelines(valid)
- outfile.write(']')
- outfile.write(nav_whole.group(3))
- if __name__ == '__main__':
- if len(sys.argv) == 2:
- parse(sys.argv[1])
Add Comment
Please, Sign In to add comment
-
⭐⭐⭐MAKE $500 IN 15 MIN⭐⭐
Java | 4 sec ago | 0.15 KB
-
✅ Marketplace Glitch ✅ Working NEVER SEEN BE...
JavaScript | 5 sec ago | 0.25 KB
-
⭐✅ Exploit 2500$ in 15 Minutes⭐⭐⭐ H
JavaScript | 13 sec ago | 0.25 KB
-
⭐⭐⭐Profit Method⭐⭐
Java | 16 sec ago | 0.15 KB
-
📝 EASY MONEY GUIDE ✅ Working R
JavaScript | 22 sec ago | 0.25 KB
-
⭐⭐⭐Make $1500 in 20 minutes⭐⭐
Java | 28 sec ago | 0.15 KB
-
📌 Instant BTC Profit Method ✅ Working E
JavaScript | 31 sec ago | 0.25 KB
-
✅ Make $2500 in 20 minutes⭐ X
JavaScript | 39 sec ago | 0.25 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