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

141
Vistas
Retrieving tokens while taking quotes and escape characters into account

I have a node script that reads lines of input from a file where each line is formatted like this:

https://youtu.be/hdA_rpOXFws Ouroboros\ ~Infinite\ Circulation~ "Ouroboros ~Infinite Circulation~" VOEZ DLight
...
...
...

I want to split these lines into tokens such that the first token will be https://youtu.be/hdA_rpOXFws, then Ouroboros ~Infinite Circulation~, then Ouroboros ~Infinite Circulation~, then VOEZ, then DLight. Currently my solution revolves around manually going through and checking each space to see if the character is escaped or if there is a quote after it and manually finding the next quote but making sure it's not escaped, but this is headache-inducing. Is there an easy built-in way to do this?

As for why I'm doing this, yes

about 4 years ago · Juan Pablo Isaza
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