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

212
Views
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 answers
Answer question

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 Report
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!