\DevOwl\FastHtmlTag\finderAbstractRegexFinder

Find by regular expression.

Summary

Methods
Properties
Constants
replace()
addCallback()
setFastHtmlTag()
getCallbacks()
getFastHtmlTag()
getRegularExpression()
No public properties found
No constants found
applyCallbacks()
createMatch()
No protected properties found
N/A
No private methods found
$fastHtmlTag
$callbacks
N/A

Properties

$callbacks

$callbacks :array<mixed,callable>

Callbacks.

Type

array<mixed,callable>

Methods

replace()

replace(string  $html)

See `AbstractFinder`.

Parameters

string $html

addCallback()

addCallback(callable  $callback)

Add a callable. The first parameter is an instance of `AbstractMatch`.

Parameters

callable $callback

getCallbacks()

getCallbacks()

Getter.

getFastHtmlTag()

getFastHtmlTag()

Getter.

getRegularExpression()

getRegularExpression()

Get regular expression.

createMatch()

createMatch(array  $m): \DevOwl\FastHtmlTag\finder\match\AbstractMatch|false

A regexp match got found. Let's create a `AbstractMatch` instance.

Parameters

array $m

Returns

\DevOwl\FastHtmlTag\finder\match\AbstractMatch|false —

Returns false if no match got found and we cannot process it