yeah, my source is dynamic ... and Sid's method is the kind of thing i was somewhat looking for. so thankx for that.
ok ,😃 what i need done is get the URL part out of the href attribute .
ex :
books.php?jk=count
of
<a href=books.php?jk=count>
then I'll do a urlencode to that whole string and pass it to a variable , which would replace it like this :
<a href=parse.php?URL=$link>
where,
$link=urlencode('the string extracted from the href attribute');
[in this case 'books.php?jk=count']
this is the reason that tempts me to ask the question whether its possible with preg_replace or someother method??
🙁
any suggestions?