I have a system for posting content on a certain social network of our company.
When the user enters text with hashtags
, I need to detect all of them and store them in an array.
Example:
Hello, I'm posting this # question to #stackoverlow. I hope you find good answers.
I want you to return:
array('pergunta', 'stackoverlow', 'respostas');
Remember that if the hashtag contains accented characters, they must also be processed.
Example:
#notícias
#sãoPaulo