[ILUG-Social] really really simple regex question...

Stephen Shirley diamond at skynet.ie
Wed Mar 7 16:45:06 GMT 2001


On Wed, 7 Mar 2001, Stephen Shirley wrote:

> Mornin,
> This question is so pathetically easy i'm a little bit shy about asking
> it, but anyway. How do I match a line _not_ ending in a certain word. I've
> tried
> .*^(word)
> but it doesn't work.
> Any suggestions?
>
> Steve
>

Well I have a solution, but it's not pretty, and there sureley must be a
better way:
/.*[^w][^o][^r][^d]$

Steve

-- 
Patient Voice - 'So why did we get "404 File Not Found"?'
Blonde Voice - 'Because it didn't look hard enough?'





More information about the Social mailing list