Index // Countx


Format:

countx( haystack, regex )

Description:

Return the count of the regular expression regex in the string haystack.

See Also:

Count

Example:

print countx("Hello", "[hH]")
print countx("Buffalo buffalo buffalo.","[Bb]uffalo")
will display
1
3

Revised:

0.9.6.55