Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

215
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda