[HELP] Regex. How to check if is match.
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. |
Re: [HELP] Regex. How to check if is match.
EDIT: I got the info from the amx documentation
This is one of my test regex codes: Code:
new num, error[128] |
Re: [HELP] Regex. How to check if is match.
As notes if you use the same pattern severals times, you should precompile the pattern using regex_compile.
|
Re: [HELP] Regex. How to check if is match.
isee thanks.
|
| All times are GMT -4. The time now is 08:56. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.