AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Case insensitive regex match? (https://forums.alliedmods.net/showthread.php?t=8887)

jtp10181 12-29-2004 22:09

Case insensitive regex match?
 
Is this possible without using a char class like... [Aa]
I tried using my match string as /match/i and it seems to just break it totally. Any other ideas?

jtp10181 12-29-2004 22:11

hmmmm wait I think I can just use strtolower() on the string to be test before I run it though..... duh.
----

yeap thats working.....

BAILOPAN 12-30-2004 07:58

Unfortunately, I think "case insensitive" has to be a flag you set in the C call, so it might not be available from small.

I'll add it into the next update somehow ;[

jtp10181 12-30-2004 16:35

Quote:

Originally Posted by BAILOPAN
Unfortunately, I think "case insensitive" has to be a flag you set in the C call, so it might not be available from small.

I'll add it into the next update somehow ;[

no big deal unless you really feel like it, cause right now the strtolower thing is working in my situation.


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

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