Does REGEXP exist in amx script ?
i want test
a big pattern like this
Code:
var %a = 1 , %i
While ($vulglist(%a)) {
var %vulg = $vulglist(%a) , %pasvulg = $pasvulglist(%a)
%i = $calc( %i + ($regex($phrase($1-),/( $+ %vulg $+ )/ig) - $regex($phrase($1-),/( $+ %pasvulg $+ )/ig)) )
inc %a
}
return %i
that return 1 or more if a word is in the vulglist pattern and not in pasvulglist pattern
like
if i have
chat in vulglist
and
lechat in pas vulglist
so
chat is not count
__________________