Lines Matching refs:k
11 // \k<word> syntax
12 echo mb_ereg_replace('(?<a>\s*)(?<b>\w+)(?<c>\s*)', '\k<a>_\k<b>_\k<c>', 'a b c d e' ), "\n";
13 // \k'word' syntax
14 echo mb_ereg_replace('(?<word>[a-z]+)',"<\k'word'>", 'abc def ghi'), PHP_EOL;
15 // numbered captures with \k<n> syntax
16 …echo mb_ereg_replace('(1)(2)(3)(4)(5)(6)(7)(8)(9)(a)(\10)', '\k<0>-\k<10>-', '123456789aa'), PHP_E…
17 // numbered captures with \k'n' syntax
18 …echo mb_ereg_replace('(1)(2)(3)(4)(5)(6)(7)(8)(9)(a)(\10)', "\k'0'-\k'10'-", '123456789aa'), PHP_E…
20 echo mb_ereg_replace('a', "\k'0'_\k<01>", 'a'), PHP_EOL;
22 echo mb_ereg_replace('(?<a>A)\k<a>', '-\1-', 'AA'), PHP_EOL;
24 echo mb_ereg_replace('(\w)\1', '-\k<>-', 'AA'), PHP_EOL;
26 echo mb_ereg_replace('(?<a>\w+)', '-\k<a', 'AA'), PHP_EOL;
33 a_\k<01>
35 -\k<>-
36 -\k<a