A trivial question

Post Reply
KAIAD
Posts: 16
Joined: 03 Aug 2017, 20:10

A trivial question

Post by KAIAD » 27 Jul 2018, 17:12

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=

Maksym
Site Admin
Posts: 2071
Joined: 02 Mar 2009, 17:02

Re: A trivial question

Post by Maksym » 28 Jul 2018, 18:36

Here you are:

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

KAIAD
Posts: 16
Joined: 03 Aug 2017, 20:10

Re: A trivial question

Post by KAIAD » 30 Jul 2018, 02:02

Very kind of you!

Post Reply