Zend\Filter\PregReplace
Synopsis
class PregReplace
extends AbstractFilter
{
- // members
- protected array $options;
- // Inherited members from AbstractFilter
- protected array $options;
- // methods
- public void __construct()
- public self setPattern()
- public string|array getPattern()
- public self setReplacement()
- public string|array getReplacement()
- public mixed filter()
- protected bool validatePattern()
- // Inherited methods from AbstractFilter
- public static bool hasPcreUnicodeSupport()
- public self setOptions()
- public array getOptions()
- public mixed __invoke()
- protected static bool isOptions()
Hierarchy
Extends
Members
protected
- $options
- $options
—
array
Filter options
Methods
protected
- validatePattern() — Validate a pattern and ensure it does not contain the "e" modifier
public
- __construct() — Constructor Supported options are 'pattern' => matching pattern 'replacement' => replace with this
- filter() — Perform regexp replacement as filter
- getPattern() — Get currently set match pattern
- getReplacement() — Get currently set replacement value
- setPattern() — Set the regex pattern to search for
- setReplacement() — Set the replacement array/string
Inherited from Zend\Filter\AbstractFilter
protected
public
- __invoke() — Invoke filter as a command
- getOptions() — Retrieve options representing object state
- hasPcreUnicodeSupport()
- setOptions()