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

129
Views
regexp in app script return empty result in weird way

I have an HTML string and i wrote a simple app script regex

const write = console.log // just for the snippet

const short_string = `Total Amount Due:</td>
<td>$130.96</td>
</tr>
<tr>
<td>Draft Date:</td>
<td>January 21, 2022  <`

var regex= new RegExp('\$([+-]?([0-9]*)(\.([0-9]+))?)','gi');
var result=regex.exec(short_string);
write(result);

why does it return empty result

[, , , null, null]
about 4 years ago · Juan Pablo Isaza
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!