Page 1 of 1

More help humbly requested

PostPosted: Sat Jun 11, 2005 11:27 pm
by RonMarz
How would I write a regex filtering out all three of the following terms?

Superman #312.rar
Superman #313.zip
Superman and Lois.zip

My best guess was "superman*\rar|zip, " but that didn't work.

Thanks to anyone who can help me see a little clearer.

PostPosted: Sun Jun 12, 2005 12:08 am
by Quade
superman.*[.]rar
superman.*[.]zip

I don't have much luck with the OR operator. I just add multiple filters.

superman* means "superman with 0-N "n" at the end of it.
superman.* means "superman with 0-N <any char>"

[.]rar mean ".rar". I just like bracket escaping instead of \ but.

\.rar should mean the same thing.

PostPosted: Mon Jun 13, 2005 12:20 am
by Smite
I just make a point of using brackets to seperate the scope of the OR

"superman.*((rar)|(zip))" should work, though I'm not sure why you don't just use "superman"

PostPosted: Mon Jun 13, 2005 1:48 am
by Quade
Good point