Click here to Skip to main content
15,878,852 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
XML
$text = 'Hi #How are you';

I need 
$Output = Hi <a href="/how">#How</a>

I need to extract Hashtag from the $text and then replace it with a link with hashtag part converted to lowercase and leave hashtag as it is
Posted
Updated 1-Jun-15 7:45am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900