Regex to remove part of a string

208 views Asked by At

Here is my string http://www.example.com/dl/r66h5icmsyrh

I need to remove http://www.example.com/dl/

I am using autoblogged a wordpress plugin; which can handle regex in post template

This is what i tried.

%regex("%link%", "http://www.example.com/dl/", "0")%
1

There are 1 answers

8
dockeryZ On

Use this:

%regex("%link%", "\\([^\\]+)$\", "0")%