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

89
Views
cadena regex @[nombre de algo](stringId)

Tengo un texto con contenido de cadena y una etiqueta. Quiero dividir el texto en una matriz. Lo intenté de muchas maneras pero obtuve algunos errores @@

Aporte:

 "This is a text with a @[name of tag](tagId). This is another @[name of another tag](tagId)"

Producción:

 array = ["This is a text with a ", "@[name of tag](tagId)", ". This is another " , "@[name of another tag](tagId)"]

La etiqueta siempre tiene @[ al principio, ) al final y ]( en el medio,

Lo intenté

 const str = "This is a text with a @[name of tag](tagId). This is another @[name of another tag](tagId)" const result = str.split(/[@[)]/); console.log(result);

Pero eso tiene muchos problemas como "", "" o falta @[ en el resultado

gracias por toda la ayuda

about 4 years ago · Santiago Gelvez
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!