Usando php, substitua regex por regex
Quero substituir as tags hash na string pela mesma tag hash, mas depois de adicionar o link
Exemplo:
$text = "any word here related to #English must #be replaced."
Eu quero substituir cada hashtag por
#English ---> <a href="bla bla">#English</a>
#be ---> <a href="bla bla">#be</a>
então a saída deve ser assim:
$text = "any word here related to <a href="bla bla">#English</a> must <a href="bla bla">#be</a> replaced."
obrigado