numberOfRegex

numberOfRegex ( string regex , string _subject ) : int

Return the number of matching expressions

See also

regex

Parameters

regex

Regular expression

_subject (optional)

The string in which regex will be searched. It doesn't have to be HTML code, you can put any kind of text in it. If null it is the page code in a FORPAGE script.