Month: September 2019

Recent Posts

基本安裝:
wget http://www.rarlab.com/rar/rarlinux-x64-5.3.0.tar.gz
tar -zxvf rarlinux-x64-5.3.0.tar.gz
cd rar && make

———-List in the Console————–
mkdir -p /usr/local/bin
mkdir -p /usr/local/lib
cp rar unrar /usr/local/bin
cp rarfiles.lst /etc
cp default.sfx /usr/local/lib
—————-End———————–
現在已經成功安裝RAR/UNRAR

基本使用:
rar a test.rar test
把test文件壓縮為test.rar
rar a -p test.rar
把test.rar設置密碼
rar a -v49m test.rar file
把file文件分卷打包成每卷49mbs的rar文件,名字為test01.rar、test02.rar…(不足49mbs的話只分一卷)

unrar l test.rar
把test.rar裡面的東西列出來
unrar x test.rar
把test.rar解壓縮(保留文件結構)
unrar x test.rar ./dir
把test.rar解壓縮到本地文件夾下的dir文件夾

. – Any Character Except New Line
\d – Digit (0-9)
\D – Not a Digit(0-9)
\w – Word Character (a-z, A-Z, 0-9, _)
\W – Not a Word Character
\s – Whitespace (space, tab, newline)
\S – Not Whitespace (space, tab, newline)

\b – Word Boundary
\B – Not a Word Boundary
^ – Beginning of a String
$ – End of a String

[] – Mathes Characters in brackets
[^ ] – Matches Characters NOT in bracket
| – Either Or
( ) – Group

Quantifiers:
* – 0 or More
+ – 1 or More
? – 0 or One
{3} – Exact Number
{3,4} – Range of Numbers (Minimum, Maximum)

import re

text_to_search = ”’
abcdefghijklmnopqurtuvwxyz
ABCDEFGHIJKLMNOPQRSTUVWXYZ
1234567890
Ha HaHa
Meta Characters(need to be escaped):
. ^ $ * + ? { } [ ] \ | ( )
http://v2rayz.me


321-555-4321
123.555.12342343
123*555*1234234234
800-555-123454554654
900-555-1234332423


Mr Smith
Ms Davis
Mrs. Robinson
Mr. Ferrari JR.
Mr. T

[email protected]
[email protected]
[email protected]
[email protected]