Hello mage ----- Original Message ----- From: [EMAIL PROTECTED] Date: Tuesday, July 1, 2003 8:20 am Subject: Regex question
> hi, i have this regex: > > \.[^(gz|html)]$ > > this regex should match all files (lines) NOT ending with gz or html. > but this is not working. the lines ending with .gz are still found. > whats wrong with that? I dont think you need parenthesys around gz|html. Anyhow this should do your trick $_="file.tmp"; print "found \n" if m/[^.gz .html]$/; hth,Mark G > > THANKS A LOT :) > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]