Regexp question

bfirst

Client
Регистрация
05.11.2013
Сообщения
56
Благодарностей
0
Баллы
6
Hi

Is it possible to write a regexp which will make exclusion of the word.

For example: I need only sentenses which NOT contain "poker" or "casino" word. (I have each sentense in new line)

I think that it should be something like that : (?<=^|\n).*[^here something which will exclude the words].*\.(?=\r|$) but [^...] can only exclude letters or a-z 1-9. I don't know how to do it. Can someone help me?
 

bfirst

Client
Регистрация
05.11.2013
Сообщения
56
Благодарностей
0
Баллы
6
Solved :-). Maybe it will be interesting for someone. Here is a result : (?<=^|\n)((?!excluded word).)*(?=\r|$)
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)