Assume i have the following hrefs:
.... href="http://localhost/centboox/usedtextbooks/desc/30" ....
I would like to through all of them and add ** just before closing the href's double quotation:
... href="http://localhost/webname/pagename/desc/30*******" ...
Asterisks represent some input e.g. ?q=all&a=search_text
How can i do this via preg_replace in PHP.
Thanks