I have these URL:
http://web.com/George-Eliot/5234-20412_4-54534.html
http://web.com/Reading-HD/3434-20412_4-43454.html
How to extract middle part: George-Eliot and Reading-HD ? I mean removing all except middle part.
You could use capturing groups.
Use this regex ^http:\/\/[^\/]*\/([^\/]*).* and then replace the matched characters by \1
^.*\/(?=[^\/]*\/[^\/]*$)|\/[^\/]*$
Try this.Replace by empty string.See demo.