regex: find the part, which doesn't contain none of some words

Posted by Syom on Stack Overflow See other posts from Stack Overflow or by Syom
Published on 2010-04-24T13:36:36Z Indexed on 2010/04/24 13:43 UTC
Read the original article Hit count: 152

Filed under:
|

how can i much the sentense, if it doesn't contain none of {word1,word2,word3} where i must put ^ symbol? i think it must looks like this

^([^word1|word2|word3])$

but it doesn't work. could you help? thanks

© Stack Overflow or respective owner

Related posts about php

Related posts about regex