GSAK (Geocaching Swiss Army Knife)
Contents - Index

RegExCount (function)

RegExCount(sExpression, sData) : Number

This function will return the number of times the regular expression sExpression is found in sData
Set $count = RegExCount("dog","Dogs are dogmatic about doing it doggy style") would set $count to 3
Note: the regular expression engine has been set to ignore case .

Example: 
 

$count = RegExCount("dog","Dogs are dogmatic about doing it doggy style") 
msgok msg=$count




Alpha List         Category List


Copyright 2004-2019 CWE Computer Services  
Privacy Policy Contact