Page 1 of 1

replace string

Posted: 01 Apr 2018, 03:28
by KAIAD
hi!

I want to change urls

from
http://dcimg8.dcinside.co.kr/viewimage. ... ebbdb884de
to
http://image.dcinside.com/viewimage.php ... ebbdb884de

i mean "dcimg8.dcinside.co.kr" to "image.dcinside.com"

any Regular Expression?

thanks for reading

Re: replace string

Posted: 01 Apr 2018, 15:49
by Maksym
Well, you can only apply Custom Parsers to the page text. And usually URLs are located between quotes. If that's so, then you can use the following Custom Parser:

Expression: "(https?://)[^/]+/([^"]+)"
Result: [#1]image.dcinside.com[#2]