How can I apply a NOT to a regular expression?  I know how to do it with a single 
character:
[a-y].jpg  = a.jpg b.jpg ... y.jpg
[^a-y].jpg = z.jpg

What about the reverse of a whole expression?
not '(sally|sue)'
not 't[i-z]e'

Also, programs like grep seem to have much stronger regex support than does bash (ie 
ls)

ls '(sally|sue)'   doesn't work, but
grep string '(sally|sue)'  does

Yet with ls, something like: {sally,sue} works.

What about something like ^{sally,sue} (not)?

What's the deal?

Cory

Reply via email to