|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Do you like challenges?
I'd like to know how do the following regexp:<br> Match all strings wich exactly aren't (case ins.) "words", for example. "some words" would match "works" would match "word" would match etc. but "words" wouldn't match It is easy when the exp is a character, using [^a], [^b], etc. but, what about an entire expression Try it as simple as possible, although I'm afraid it will result a monster regexp. Thanks! |
|
#2
|
||||
|
||||
|
How about "/words/i" (or the ! thereof)?
|
|
#3
|
||||
|
||||
|
What language, btw? In the regexes I've always used, a carat means "beginning" rather than "not."
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > Programming Tools > "Negative" match |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|