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

117
Views
Parsing Email in proper format from Web Speech API Transcript

I am using web speech API in chrome to get a string (transcripts) I want it to be able to parse emails as example@gmail.com not example at the rate gmail.com can we transform it to expected output using Regex or any kind of alternative?

Current output from voice (not useful)

David at the rate gmail.com
David at Gmail.com
Stacy at the rate gmail.com
Stacy at Gmail.com

Expected output to be (will be useful)

David@gmail.com
Stacy@gmail.com
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

First split the string into an array of lines and then only select the lines with "at the rate"

let lines = emailstring.split('\n');
for( i = 0; i < lines.length ; i += 2 ) lines[i] =  lines[i].replace(" at the rate ", "@");
console.log(lines);

The splitting of the string into lines can also be done with regex.

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!