Hi all,

I am working on a small php script which should do the
following. I want all the links in the page to be
preceded by first character and first two characters
of the link.Please look into the example below for
more
clarification.

eg. 
<a href="/code.html">link here</a> to be
replaced as 
<a href="/c/co/code.html">link here</a>

I guess, this is possible by using regular expressions
but I am not able to crack the right expression.

Any help would be highly appreciated in this
regards.

Cheers,
Killu

________________________________________________________________________
Yahoo! India Matrimony: Find your life partner online
Go to: http://yahoo.shaadi.com/india-matrimony

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to