|
Replace image with specific dimension
|
|
Sep. 30, 2009, 09:25 AM
Post: #4
|
|||
|
|||
|
RE: Replace image with specific dimension
Hi,
The filter runs well now! I have a minor issue which I hope to find again a solution here: (still reg. the above filter): This is the filter code I'm using (thanks to JJoe!) Name = "Images: Replace by own - test 7" Active = TRUE Multi = TRUE URL = "$TYPE(htm)" Limit = 32766 Match = "<img*>" "&&(" "(*height=$AV(100)&*width=$AV(150))|" "(*height=$AV(50)&*width=$AV(40))|" "(*height=$AV(110)&*width=$AV(301))" ")&" "(*height=(\w)\2)&(*width=(\w)\3)" "&" "\1src=$AV(*)\4" Replace = "\1" "src="http://192.168.0.15/playground/proxy/replace_\3_\2.jpg"" "\4" As you can see, I'm capturing now also the width & height per image with this "(*height=(\w)\2)&(*width=(\w)\3)" The variables \2 and \3 do contain the values but of course surrounded by double quotes. How can I remove them or how to capture them without? Thank you very much! Cheers, Fabian |
|||
|
« Next Oldest | Next Newest »
|
| Messages In This Thread |
|
Replace image with specific dimension - fabfab - Sep. 29, 2009, 06:09 PM
RE: Replace image with specific dimension - JJoe - Sep. 29, 2009, 10:55 PM
RE: Replace image with specific dimension - fabfab - Sep. 30, 2009, 07:53 AM
RE: Replace image with specific dimension - fabfab - Sep. 30, 2009 09:25 AM
RE: Replace image with specific dimension - whenever - Sep. 30, 2009, 10:35 AM
RE: Replace image with specific dimension - fabfab - Sep. 30, 2009, 11:44 AM
RE: Replace image with specific dimension - JJoe - Sep. 30, 2009, 03:19 PM
|

Search
Member List
Calendar
Help




![[-]](images/ONi/collapse.gif)