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

217
Vistas
is there a RegExp that can get the string of a list of ID's?

I have a script that search a mail body.

in the mail body a get a list of ID's like below: Batch: yt166161 Section:567-947 Sys_id: 1234 Sys_id: 6543 Sys_id: 0974

I need to extract only the number after the Sys_id: and put the in an array.

I'm working on JavaScript

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

0

You can use the regex /[0-9]+/gm to extract the number.

ex:

const str = 'Sys_id: 1234 Sys_id: 6543 Sys_id: 0974';
const regex = /[0-9]+/gm;
const matches = str.match(regex);
console.log(matches);

output: [ "1234" , "6543" , "0974" ]

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