52AV璈A|52AV.ONE

 曉撖蝣
 蝡唾酉
敹急瑕
  • av隢憯BBS
  • 璈A
  • 芣瑟憭瘚
  • 鞎澆
  • 52av鋆貉摰
  • 銝剜-銝剖銝餅
Yahoo!憟拇撠
望: 璈A
Google憟拇撠
望: 璈A
     
亦: 3222|敺: 0
銝銝銝駁 銝銝銝駁

[PHP] 曉銝 pre_match() ----急迤閬銵函內撘

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2015-7-2 13:09:55 | 芰閰脖 撣 |摨閬 |梯璅∪
砍敺 IT_man 2015-7-2 19:36 蝺刻摩
* c! M' C( ^3 P1 A  P* {1 M. E$ [0 W, P: Q/ s' l' t
1.剖偏//閬脣 slash詨
" v' }/ a7 y0 d' q: b$ j2.喟潔
$ L# m* e6 b% F% {3.雿輻典啗歲怠 敹雿輻 \^
  M$ P( Y" b* j( |* bpreg_match("/(甇閬璇隞嗅銝)/","(甈脤霅摮銝)")嚗憒甈脤霅摮銝脩泵甇閬璇隞嗅銝莎1(true)嚗銋0(false)error return false.9 m  H2 k) J5 q7 k4 ]. j
銝憭批撖怎sensitive
# h& u1 k9 i1 m& q* y0 W( Neregi('^hello', 'HELLO');
: z5 _; X% c/ J7 A9 kpreg_match('/^hello/i', 'HELLO');; H9 A$ q4 a7 U  O; N: G7 Z; i
, D. a8 x$ U' L2 q

8 l- @3 M% b; l1. 閬頝唾怠寞蝚西
+ L5 R* I4 \- U1 n+ H! D# v9 z\   +   [   ]   .   ^   $   *   ?   (   )   |   '   "   {   }
; z0 V) u  M( S: z憒雿輻典 甇閬銵券撘蝚西 隢雿輻刻歲怠 eg. \^: X: f: [4 P) Z! A0 S% M1 T/ i

6 y4 K' Q( C+ f8 W( U- j* h
8 ?9 T# l" O! f+ _& a4 q1 u) e2.
$ s0 f) W% s$ w6 S( K: y
隤芣蝭靘
瘥撠銝蝡銋摮銝
/a/
怠瘥 a" 摮銝莎靘憒 ab", bac", cba"xyz"
/a./
怠瘥 a" 隞亙嗅隞颱摮摮銝莎靘憒 ab", bac"嚗亥瘥撠.嚗隢雿輻 \.嚗a", ba"
/^xy/
隞 xy" 憪摮銝莎靘憒 xyz", xyab"嚗亥瘥撠 ^嚗隢雿輻 \^嚗axy", bxy"
/xy$/
隞 xy" 蝯撠曄摮銝莎靘憒 axy", abxy"隞 xy" 蝯撠曄摮銝莎靘憒 axy", abxy" 嚗亥瘥撠 $嚗隢雿輻 \$嚗xya", xyb"
[13579]
1 3 5 7 9 摮銝莎靘憒嚗"a3b", 1xy"y2k"
[0-9]
急詨銋摮銝銝急詨銋摮銝
[a-z0-9]
急詨撠撖怠瘥銋摮銝銝急詨撠撖怠瘥銋摮銝
[a-zA-Z0-9]
急詨摮瘥銋摮銝銝急詨摮瘥銋摮銝
b[aeiou]t
bat", bet", bit", bot", but"bxt", bzt"
[^0-9]
銝急詨銋摮銝莎亥瘥撠 ^嚗隢雿輻 \^嚗急詨銋摮銝
[^aeiouAEIOU]
銝急喃摮銝莎亥瘥撠 ^嚗隢雿輻 \^嚗急喃摮銝
[^\^]
銝 ^" 銋摮銝莎靘憒 xyz", abc"xy^", a^bc"
隤芣
蝪∪桃靘
\
輸寞摮/A\*/ 舐冽潭撠 A*"嚗嗡葉 * 臭寞摮嚗粹輸嗥寞蝢抬隞亙銝 \"
^
瘥撠頛詨亙憪雿蝵/^A/ 舀撠 Abcd" 銝剔 A"嚗雿銝舀撠 aAb"
$
瘥撠頛詨亙蝯雿蝵/A$/ 舀撠 bcdA" 銝剔 A"嚗雿銝舀撠 aAb"
*
瘥撠銝摮嗆活游甈/bo*/ 舀撠 Good boook" 銝剔 booo"嚗鈭血舀撠 Good bk" 銝剔 b"
+
瘥撠銝摮銝甈⊥游甈∴蝑 {1,}/a+/ 舀撠 caaandy" 銝剔 aaa"嚗雿銝舀撠 cndy"
?
瘥撠銝摮嗆活銝甈/e?l/ 舀撠 angel" 銝剔 el"嚗銋臭誑瘥撠 angle" 銝剔 l"
.
瘥撠隞颱銝摮嚗雿銵蝚西銝蝞嚗/.n/ 舀撠 nay, an apple is on the tree" 銝剔 an" on"嚗雿銝舀撠 nay"
(x)
瘥撠 x 銝血蝚血典摮乩霈/(a*) and (b*)/ 舀撠 aaa and bb" 銝剔 aaa" bb"嚗銝血拙瘥撠敺啁摮銝脰身摰唾 RegExp.$1 RegExp.$2
xy
瘥撠 x y/a*b*/g 舀撠 aaa and bb" 銝剔 aaa" bb"
{n}
瘥撠銝摮 n 甈∴n 箔甇湔/a{3}/ 舀撠 lllaaalaa" 嗡葉 aaa"嚗雿銝舀撠 aa"
{n,}
瘥撠銝摮喳 n 甈∴n 箔甇湔/a{3,}/ 舀撠 aa aaa aaaa" 嗡葉 aaa" aaaa"嚗雿銝舀撠 aa"
{n,m}
瘥撠銝摮喳 n 甈∴喳 m 甈∴mn 箸迤湔/a{3,4}/ 舀撠 aa aaa aaaa aaaaa" 嗡葉 aaa" aaaa"嚗雿銝舀撠 aa" aaaaa"
[xyz]
瘥撠銝剜砍憫抒隞颱摮/[ecm]/ 舀撠 welcome" 銝剔 e" c" m"
[^xyz]
瘥撠銝其葉砍憫批箇曄隞颱摮/[^ecm]/ 舀撠 welcome" 銝剔 w""l""o"嚗航箏嗉 [xyz] 賜詨嚗隢摮訾瘜冽 /^/ [^] 銋賜銝嚗
[\b]
瘥撠雿摮嚗Backspace character嚗臭誑瘥撠銝 backspace 嚗銋隢瘜冽 [\b] \b 銋撌桀
\b
瘥撠望摮嚗靘憒蝛箸靘憒 /\bn\w/ 臭誑瘥撠 noonday" 銝剔 no ;/ P1 x0 j& X* M6 W4 z
/\wy\b/ 舀撠 possibly yesterday." 銝剔 ly
\B
瘥撠望摮靘憒, /\w\Bn/ 臭誑瘥撠 noonday" 銝剔 on ,: a: A; a) s! `+ {" E/ P
血 /y\B\w/ 臭誑瘥撠 possibly yesterday." 銝剔 ye
\cX
瘥撠批嗅嚗Control character嚗嚗嗡葉 X 臭批嗅/\cM/ 臭誑瘥撠銝摮銝脖葉 control-M
\d
瘥撠隞颱詨嚗蝑 [0-9]/[\d]/ 舀撠 0 9 隞颱詨雿園憒摮瘥蝑撠曹舀撠
\D
瘥撠隞颱詨嚗蝑 [^0-9]/[\D]/ 舀撠 w" a" 雿銝舀撠憒 7 1 蝑詨
\f
瘥撠 form-feed交臬冽摮銝剜潛 " 銵箏臭誑瘥撠
\n
瘥撠銵蝚西交臬冽摮銝剜潛 銵" 銵箏臭誑瘥撠
\r
瘥撠 carriage return
\s
瘥撠隞颱蝛箇賢嚗White space character嚗嚗蝑 [ \f\n\r\t\v]/\s\w*/ 舀撠 A b" 銝剔 b"
\S
瘥撠隞颱蝛箇賢嚗蝑 [^ \f\n\r\t\v]/\S/\w* 舀撠 A b" 銝剔 A"
\t
瘥撠摰雿摮嚗Tab嚗
\v
瘥撠游雿摮嚗Vertical tab嚗
\w
瘥撠詨摮瘥摮嚗Alphanumerical characters嚗摨蝺摮瘥嚗"_"嚗嚗蝑 [A-Za-z0-9_]/\w/ 舀撠 .A _!9 銝剔 A""_""9喋
\W
瘥撠詨摮瘥摮摨蝺摮瘥嚗蝑 [^A-Za-z0-9_]/\W/ 舀撠 .A _!9 銝剔 ."" "!"嚗航嗅質 /\w/ 啣末詨
\ooctal
瘥撠恍脖嚗嗡葉octal臬恍脖貊/\oocetal123/ 舀撠恍脖ASCII銝 123 詨摮潦
\xhex
瘥撠剝脖嚗嗡葉hex臬剝脖貊/\xhex38/ 舀撠 16脖ASCII銝 38 詨摮

# B7 ]: w! W- A5 ^1 {/ X& ]: m- G8 h' j7 w靘:
  k! M" C8 u1 Y9 R"http://videomega.tv/view.php?ref=057070073072049056055072068049049068072055056049072073070057&"   "057070073072049056055072068049049068072055056049072073070057"   銝脫詨 ====>
  1. $LINK_PAGE="http://videomega.tv/view.php?ref=057070073072049056055072068049049068072055056049072073070057&";
    3 {$ \3 }% T& @0 [. U9 R
  2. preg_match('/http\:\/\/videomega\.tv\/view\.php\?ref=(\d+)&/i', $LINK_PAGE, $tmp_matches);
銴鋆賭誨蝣

$ o3 p4 r/ z" |" E$ \# ]+ @蝯 ===>3 |' ^: K0 b- _, W0 _; v3 y1 c1 w
$tmp_matches[0] = "http://videomega.tv/view.php?ref=057070073072049056055072068049049068072055056049072073070057&"
2 ^9 _; A9 [/ W+ Q8 I) t$tmp_matches[1] = "057070073072049056055072068049049068072055056049072073070057"
) o3 f. X7 C" j+ _2 K
6 m$ m( g, S; _' u0 i  j

雿輻券

祉蝛閬

BT蝳

砍憛批捆靘餉衣雯頝臬批捆蝝颲行粹嗥蝬脩嚗摰撟湔遛嚗嚗甇脖誑銝嗅啣摰嗆摰撟湧翩鈭箏ㄚ孵舫脣伐銝憿亙祉璇甈橘芣遛18甇 雓蝯脣亦閬賬粹脩芣遛18甇脖芣撟渡雯閬賜雯頝臭嗥批捆鞈閮嚗撱箄降典舫脰蝬脰楝批捆蝝蝯蝜ICRA蝝摰鋆閮剖 (粹蝯行霅 祉蝬脣銝蝝瘛函隢憯啣嚗祉閮剜蝞∠)

QQ|撠暺撅||52AV璈A

GMT+8, 2024-12-22 18:26 , Processed in 0.060776 second(s), 16 queries .

蝯∠.撱

52avtv@gmail.com | QQ:2405733034     since 2015-01

鋆貉憒 敹恍敺 餈銵