I have the following:
The moment #BTC, we have all $BTC been waiting for:We are happy to announce NIX Platform is rebranding to.. $NBT > $VOICE $NIX > $MUTE $ETH $BTC #BTC
I would like to remove only the remove the words with # or $ to be removed from the end, not the middle, so the above string would look like this
The moment #BTC, we have all $BTC been waiting for:We are happy to announce NIX Platform is rebranding to.. > >
Currently I have #(?!(?:hashtag)\b)[\w-]+(?=(?:\s+#[\w-]+)*\s*$) as regex that removes words with # from end but not $, not sure what I need to include those as well