hi hp,
i'm sorry, but i hadn't read first your answer to jor. so you need both to replace the border attribute when different from 0 and add border=0 when missing.
well, your filter works as expected but you can merge some option to make it simpler:
Name = "Remove Image Borders v2.2"
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)"
Bounds = "<im(g|age)s*>"
Limit = 300
Match = " border=$AV(*)2$SET(1=border="0")"
"| >$SET(1= border="0">)"
Replace = " 12"
altosax.