> The original question is, how do I edit my regex to match the pattern > that does not end with \r or \n? Maybe this is answering the wrong question - But why can't you use a '$' to show the end of the line? No? or [^\r\n]$ .. I think I'm a bit confused as to what the problem is. HTH :o/ Mark ----------------------------------- mark@safefrombees.com ICQ: 3094740 Safe From Bees [www.safefrombees.com]