Raised This Month: $ Target: $400
 0% 

Regular expression


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
sanaell
Senior Member
Join Date: May 2004
Location: SamutPrakarn Thailand
Old 06-15-2004 , 05:04   Regular expression
Reply With Quote #1

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
__________________
[email protected]
The Source of Pain is the Pain of Source
sanaell is offline
Send a message via MSN to sanaell
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:40.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode