replace string

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

replace string

Post by KAIAD » 01 Apr 2018, 03:28

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

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

Re: replace string

Post by Maksym » 01 Apr 2018, 15:49

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]

Post Reply