On Wed, Dec 09, 2009 at 06:07:34PM +0000, Chris Jackson wrote: > > To match anything except |, use: > > [^|]
Thanks! That's nice, but the pattern '\^.*\|[^\|]-[0-9]\|' still matches all lines ... and I don't see why/how it could to that ... Hmm. Here's an example line: TV|VOX-1|167(2)|136(ger),|71|12060|1089|SAstra-1H|12187|27500|h|34|-1|-1|-1|-1|-1|-1|-1|2120|||1| <start of line> <anything> <pipe> <anything but pipe> -[-0] <pipe> should match above line. But why does it match TV|VOX|167(2)|136(ger),|71|12060|1089|SAstra-19.2E|12187|27500|h|34|-1|-1|-1|-1|-1|-1|-1|473|||1| as well? -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org