1 | <?php |
||
5 | class Regex |
||
6 | { |
||
7 | /** |
||
8 | * @param string $pattern |
||
9 | * @param string $subject |
||
10 | * |
||
11 | * @return \Spatie\Regex\MatchResult |
||
12 | */ |
||
13 | public static function match(string $pattern, string $subject): MatchResult |
||
17 | |||
18 | /** |
||
19 | * @param string $pattern |
||
20 | * @param string $subject |
||
21 | * |
||
22 | * @return \Spatie\Regex\MatchAllResult |
||
23 | */ |
||
24 | public static function matchAll(string $pattern, string $subject): MatchAllResult |
||
28 | |||
29 | /** |
||
30 | * @param string|array $pattern |
||
31 | * @param string|array|callable $replacement |
||
32 | * @param string|array $subject |
||
33 | * @param int $limit |
||
34 | * |
||
35 | * @return \Spatie\Regex\ReplaceResult |
||
36 | */ |
||
37 | public static function replace($pattern, $replacement, $subject, $limit = -1): ReplaceResult |
||
41 | } |
||
42 |