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