Regex - find all phrases except the one including specific word

Posted by ekapek on Stack Overflow See other posts from Stack Overflow or by ekapek
Published on 2010-03-17T23:56:36Z Indexed on 2010/03/18 3:21 UTC
Read the original article Hit count: 282

Filed under:

Hi,

I have a text file with text like: "Lorem ipsum text. Second lorem ipsum. How are You. It's ok. Done. Something else now.

New line. Halo. Text. Are You ok."

I need a regex to find all sentences (between .) except ones with the word "else" within it. I'm trying many regex patterns but nothing works.

Can I do this with regex?

© Stack Overflow or respective owner

Related posts about regex