Wouldn't this filter: Name = "Remove Image Borders"
Active = TRUE
Bounds = "<im(g|age)s*>"
Limit = 256
Match = "1 border=$AV(*) 2"
Replace = "1 border="0" 2"
work just as well? No need to add border="0" to all images... since the default is none.
I made a few changes to my new Remove Image Borders filter and decided to move it here.
Name = "Remove Image Borders v2.1"
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)"
Bounds = "<imgs*>"
Limit = 300
Match = "( (border=$AV(0)>)1)|( (border=$AV(0)s)1 2)"
"|( (border=$AV([#1:10])>)$SET(1=border="0")$SET(2=>))"
"|( (border=$AV([#1:10])s)$SET(1=border="0" ) 2)"
"|( >)$SET(1= border="0")$SET(2=>)"
Replace = " 12"
Can anyone think of a way to make it fail to match in the bounds match if border="0" already exists?
Facing each other,
a thousand miles apart.