Raised This Month: $ Target: $400
 0% 

Regular expression


Post New Thread Reply   
 
Thread Tools Display Modes
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
BAILOPAN
Join Date: Jan 2004
Old 06-15-2004 , 12:44  
Reply With Quote #2

No
__________________
egg
BAILOPAN is offline
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 06-15-2004 , 16:15  
Reply With Quote #3

You could write a module to do it.. hint hint
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
Reply



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