Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

241
Vistas
SQL String Parsing with Hashtags

How do I extract #hashtags from texts saved in SQL? Or directly extract #hashtag and show them as clickables in search bar "drop-down like thing"?

For example

text1 = "This is a nice #hashtag and I #like it"; => result => #hashtag , #like

text2 = "#hopefully I will get #answer #here"; => result => #hopefully #answer #here

All these texts are in a SQL table and I forgot to make a column for hashtags which should store this data.
OR
The main Purpose is to extract these hashtags and show as user types relative words in search box
for e.g User types #h
he should see #hashtag (from text1 above example)
and #here (from text2 above example)
and #hopefully (from text2 above example)

about 4 years ago · Santiago Gelvez
1 Respuestas
Responde la pregunta

0

You could get an array of hashtags like this:

const sentence = "This is a nice #hashtag and I #like it"
const hashtags = sentence.split(" ").filter(word=> word.startsWith("#"))

console.log(hashtags)

about 4 years ago · Santiago Gelvez Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda