Home > Net >  Identify the correct hashtag indexes in tweet messages
Identify the correct hashtag indexes in tweet messages

Time:03-01

I need to identify the correct indexes in twitter messages (various languages, emojis, etc).

I can't find a solution that returns these positions as shown in the example below.

import (
    "regexp"
    "testing"

    "github.com/stretchr/testify/require"
)

func TestA(t *testing.T) {
    text := "           
  • Related