Regexp question

  • Автор темы Автор темы bfirst
  • Дата начала Дата начала

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?
 
Solved :). Maybe it will be interesting for someone. Here is a result : (?<=^|\n)((?!excluded word).)*(?=\r|$)
 

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