08.06.2011, 15:16
[Plugin] Regular expression
08.06.2011, 15:27
Example please, that player would connect with this form: Firstname_Secondname
example: Yes_Yes
but not YeS_yES
example: Yes_Yes
but not YeS_yES
08.06.2011, 23:15
Quote:
Example please, that player would connect with this form: Firstname_Secondname
example: Yes_Yes but not YeS_yES |
regEx is reading many many tutorials before you can get started with it..
09.06.2011, 04:07
This is a great plugin..
I'll use it
I'll use it
09.06.2011, 05:42
Quote:
http://www.regular-expressions.info/refadv.html
regEx is reading many many tutorials before you can get started with it.. |
09.06.2011, 06:56
Read the whole topic ****** gave some and some other people too.
27.10.2011, 13:57
pawn Code:
CWeb = regex_build(\"((http://)|(https://))?([a-zA-Z0-9]+[.])+[a-zA-Z]{2,4}(:\d+)?(/[~_.\-a-zA-Z0-9=&%@:]+)*\??[~_.\-a-zA-Z0-9=&%@:]*)");
27.10.2011, 14:03
Edit: this one is giving invalid character constant now
pawn Code:
stock ContainsIPEx(const string[])
{
static RegEx:rCIP;
if ( !rCIP )
{
rCIP = regex_build("(25[0-5]|2[0-4][0-9]|[0-1]?[0-9][0-9]?\.){3}(25[0-5]|2[0-4][0-9]|[0-1]?[0-9][0-9])");
}
return regex_match_exid(string, rCIP);
}
27.10.2011, 14:43
It's because you don't escape your backslashes, i.e.:
Is wrong.
Correct way:
OR, if you don't want to escape all backslashes, you can do:
Note that you won't be able to use newline characters and such (\n).
pawn Code:
printf("\.");
Correct way:
pawn Code:
printf("\\.");
pawn Code:
printf(\"\.");
27.10.2011, 15:21
The user on the other page gave me the code.. I just put the \" like what you did in ContainsWebsite for now
28.10.2011, 00:52
Sorry to say, none of your versions work, they can the server when the stock is called
17.01.2012, 05:52
God bless you, thanks a LOT!
01.02.2012, 00:21
Thanks man u deserve 200+ rep at least
01.03.2012, 19:36
it doesnt work on 0.3d?
01.03.2012, 19:39
it work on 0.3d. I have it on my server. It works fine.
02.03.2012, 19:30
on my 0.3d server doesnt works, why? i have downloaded the the vesion 0.2.1, but it didnt work.
05.03.2012, 11:00
Quote:
on my 0.3d server doesnt works, why? i have downloaded the the vesion 0.2.1, but it didnt work.
|
Every time I do a gmx or exit, I have the same problem:
05.03.2012, 12:59
very very nice Plugin
05.03.2012, 19:28
What is that, I'd like to learn more about it.. I read Wikipedia but understood nothing.. I'd like to know how it's being used too.
26.07.2012, 10:40
Code:
0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ@=_[].()$
« Next Oldest | Next Newest »
Users browsing this thread: 5 Guest(s)