jayantk
03-06-2003, 05:31 AM
if "abc" and "abc def" have to be linked with URL1 and URL2
then in the text:
"kjkhj abc lkjhsdf abc def ljh"
I want the output as
"kjkhj <a href=URL1>abc</a> lkjhsdf <a href=URL2>abc def</a> ljh"
instead of
"kjkhj <a href=URL1>abc</a> lkjhsdf <a href=URL2><a href=URL1>abc</a> def</a> ljh"
or
"kjkhj <a href=URL1>abc</a> lkjhsdf <a href=URL1>abc</a> def ljh"
How can I achieve this ? PHP prefered. code sample in Perl will also do though
Thanks in advance.
Prize: A BMW to the one who answers this correctly ;)
then in the text:
"kjkhj abc lkjhsdf abc def ljh"
I want the output as
"kjkhj <a href=URL1>abc</a> lkjhsdf <a href=URL2>abc def</a> ljh"
instead of
"kjkhj <a href=URL1>abc</a> lkjhsdf <a href=URL2><a href=URL1>abc</a> def</a> ljh"
or
"kjkhj <a href=URL1>abc</a> lkjhsdf <a href=URL1>abc</a> def ljh"
How can I achieve this ? PHP prefered. code sample in Perl will also do though
Thanks in advance.
Prize: A BMW to the one who answers this correctly ;)
