Page 1 of 1

A trivial question

Posted: 27 Jul 2018, 17:12
by KAIAD
about custom parser

to make http://www.topstarnews.net/news/photo/first/\d+/[^"]+_org\.jpg things

Expression: (http://www.topstarnews.net/news/photo/first/\d+/[^"]+)(\.jpg)
Result:[#1]_org[#2]

just adding "_org" is working. but this is a two depth search process.

Expression: (http://www.topstarnews.net/news/)(thumbnail/)(first/\d+/[^"]+)(_v150)(\.jpg)
Result: [#1]photo/[#3]_org[#5]

This is current page process. more simple "thumbnail address to orig address" which is not working.
It works well in "test", but it does not actually generate an address. Doesn't it work this way?

You can try here
http://www.topstarnews.net/news/article ... &editcode=

Re: A trivial question

Posted: 28 Jul 2018, 18:36
by Maksym
Here you are:

Expression: src="\./thumbnail/first/([^/]+)/([^/"]+)v\d+(\.[^/"]+)"
Result: /news/photo/first/[#1]/[#2]org[#3]

Re: A trivial question

Posted: 30 Jul 2018, 02:02
by KAIAD
Very kind of you!