BumbleDocGen / Technical description of the project / Configuration files / PregMatch
PregMatch class:
namespace BumbleDocGen\Core\Renderer\Twig\Filter;
final class PregMatch implements \BumbleDocGen\Core\Renderer\Twig\Filter\CustomFilterInterfacePerform a regular expression match
See:
| name | value |
|---|---|
| Filter name: | preg_match |
- # __invoke | source code
public function __invoke(string $text, string $pattern): array;Parameters:
| Name | Type | Description |
|---|---|---|
| $text | string | Processed text |
| $pattern | string | The pattern to search for, as a string. |
Return value: array
- # getName | source code
public static function getName(): string;Parameters: not specified
Return value: string
- # getOptions | source code
public static function getOptions(): array;Parameters: not specified
Return value: array