Raised This Month: $ Target: $400
 0% 

[HELP] Regex. How to check if is match.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
unSeen
Member
Join Date: Sep 2008
Old 03-29-2009 , 13:52   [HELP] Regex. How to check if is match.
Reply With Quote #1

hey all.. I need little help with Regex.
I read about Regex in the documents of amxx.org and here when i search for question that people ask in this forum, but no one answered my question.

So anyways,
I wanna know how can i check if the pattern is match in the string.

for example let's say that my func is "isregex", I want to check for example:
if (isregex("I love girls", "l[oO0]ve") > 0) { server_print("yes it match") }

how do i do something like that?

thanks,
Elad.
__________________
List of important things:
1. Respect you'r mother.
2. Respect you'r father.
3. Do not hit anyone.
4. Do not steal.
5. Do not flame.
7. You didn't see that there is no number 6.
8. You checked if number 7 is true.
9. You are laughing now.
10. You are double laughing because you understand the joke ;)
unSeen is offline
 



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 08:56.


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