Constructor Supported options are
‘pattern’ => matching pattern ‘replacement’ => replace with this
Parameters: | array|Traversable|string|null – |
---|
Set the regex pattern to search for
Parameters: | string|array –
|
---|---|
Return type: | PregReplace |
Throws : | ExceptionInvalidArgumentException |
Set the replacement array/string
Parameters: | array|string –
|
---|---|
Return type: | PregReplace |
Throws : | ExceptionInvalidArgumentException |
Get currently set replacement value
Return type: | string|array |
---|
Perform regexp replacement as filter
Parameters: | mixed – |
---|---|
Return type: | mixed |
Throws : | ExceptionRuntimeException |