|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Regex where NOT a word
The text
(&(|(title=*)(objectclass=item)(createTimestamp=*)(otheratrib=*))(!(objectclass=folder))) the regex (\(.[^(=]*)=(.[^)]*\)) This works perfectly and does what I need it to do, now I want this to always run except on certain words. From the above text, title= would be found but objectclass= would not be matched. I know I can do [^objectclass] but that removes any of those letters I just want to not match on that specific word instead of those letters. Hope that's clear enough ![]()
__________________
Miscellaneous Software Viper_SB Developershed E-Support Anyone else play chess? Challenge me Last edited by Viper_SB : September 11th, 2003 at 09:10 PM. |
|
#2
|
||||
|
||||
|
Wrap it in a conditional. If 'word' is present do this, else do this.
__________________
~ Joe Penn |
|
#3
|
||||
|
||||
|
ya think I have to thanks
|
![]() |
| Viewing: Dev Shed Forums > Other > Dev Shed Lounge > Regex where NOT a word |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|