Hi,
I want to use regular expression to change all relative path to full path. e.g.: "abc.html" -> "http://www.hi.com/abc.html" however, I dunno how to write this regular expression, so I will very happy if anybody helps me.
yours, Ricky Chow
something like
s/abc.html/http:\/\/www.hi.com\/abc.html/r
but make a backup first, I am not 100% on that
These are always confusing for people.
When I give people these solutions I always get, huh?!?
PHP sets your regex delimiter on the fly allowing you to do this instead:
s#abc\\\\.html#http://www\\\\.hi\\\\.com/abc\\\\.html#r
Little less confusing.