Raised This Month: $ Target: $400
 0% 

is there a switch to turn on case ignore in amx regx


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
[DumB]Steamsucks
Junior Member
Join Date: Feb 2006
Location: uk
Old 03-03-2006 , 16:46   is there a switch to turn on case ignore in amx regx
Reply With Quote #1

looking to turn off case sensative so

+dick+ will match DICKHEAD or dickhead please

regards ...
__________________
If it works then i wrote it if it erros on less then 50 lines i had help with it if it breaks totally it wasnt me..
[DumB]Steamsucks is offline
Send a message via MSN to [DumB]Steamsucks
Des12
Senior Member
Join Date: Jan 2005
Old 03-03-2006 , 17:04  
Reply With Quote #2

equali = case sensative
equal = not case sensative
__________________
-Dest Romano

www.JustRP.com
A TSRP Server

Quote:
Originally Posted by Brad
Don't you go be bringing reality into this.
Des12 is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 03-03-2006 , 17:09  
Reply With Quote #3

wouldn't it be the oposite?
[ --<-@ ] Black Rose is offline
Greenberet
AMX Mod X Beta Tester
Join Date: Apr 2004
Location: Vienna
Old 03-03-2006 , 17:13  
Reply With Quote #4

Quote:
Originally Posted by Des12
equali = case sensative
equal = not case sensative
that has nothing to do with regex...

try this:
Code:
"(?i)+dick+"
Greenberet is offline
Send a message via ICQ to Greenberet Send a message via MSN to Greenberet
Belsebub
Senior Member
Join Date: Feb 2005
Location: Sweden
Old 03-03-2006 , 17:16  
Reply With Quote #5

Quote:
Originally Posted by Des12
equali = case sensative
equal = not case sensative
Quote:
Originally Posted by [ --<-@
Black Rose]wouldn't it be the oposite?
yep
Belsebub is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 03-03-2006 , 17:17  
Reply With Quote #6

Quote:
Originally Posted by [ --<-@
Black Rose]wouldn't it be the oposite?
Yes.

Quote:
Originally Posted by Des12
equali = case sensative
equal = not incase sensative
You're both wrong, and also off topic. It would be the other way around.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Kraugh
Senior Member
Join Date: Jan 2006
Location: barrington, ri
Old 03-03-2006 , 17:20  
Reply With Quote #7

clarifying the original question: the user wishes to ignore case sensitivity when matching expressions with the regex module, not with comparing strings using equal/contain. this is also not a post about grammar or spelling.

greenberet is correct. (?i) forces all characters to the right to be case insensitive. conversely, (?-i) forces case sensitivity. the rest of you, go away. ;)
__________________
"You can not restrain a fool from speaking, but nothing obliges you to listen."
Kraugh is offline
Send a message via AIM to Kraugh
[DumB]Steamsucks
Junior Member
Join Date: Feb 2006
Location: uk
Old 03-03-2006 , 17:21  
Reply With Quote #8

Quote:
Originally Posted by Greenberet
Quote:
Originally Posted by Des12
equali = case sensative
equal = not case sensative
that has nothing to do with regex...

try this:
Code:
"(?i)+dick+"
thanks at the moment i am useing
Code:
strtolower(input)

wich appears to work ok but i will try the ?i as well
thanks...
__________________
If it works then i wrote it if it erros on less then 50 lines i had help with it if it breaks totally it wasnt me..
[DumB]Steamsucks is offline
Send a message via MSN to [DumB]Steamsucks
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 09:53.


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