Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

134
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!