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

218
Vistas
Text Parse - Need to extract text after (E) lengh 17 char

I need to extract the following text (KNAB3512BJT142015) but none of my formula works as my marker are brackets and mess with the formula

here the global text :

de la Collectivité, Paralegatio d RE (D.2.1) B3512 (E) KNAB3512BJT142015 (F.3) 2T070 (J.3) CI (P.6) 7

Thank you for your help

about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

var str = "de la Collectivité, Paralegatio d RE (D.2.1) B3512 (E) KNAB3512BJT142015 (F.3) 2T070 (J.3) CI (P.6) 7";
var from = "(E) "
var start = str.indexOf(from) + from.length;
var result = str.slice(start, start + 17);
console.log(result)

about 4 years ago · Juan Pablo Isaza Denunciar

0

You need to escape brackets

const str = `de la Collectivité, Paralegatio d RE (D.2.1) B3512 (E) KNAB3512BJT142015 (F.3) 2T070 (J.3) CI (P.6) 7`

const re1 = /\(E\) (\w+) \(/; // grab until next space and left bracket
console.log(str.match(re1)[1])

const re2 = /\(E\) (\w{17}) \(/; // grab 17 chars after (E) pluse space
console.log(str.match(re2)[1])

console.log(str.split("(E)")[1].slice(1,18)); //split on (E) and take the next 17 after skipping the space

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