• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 151
  • Last Modified:

Trimming Javascript Expression

If I have a value such as (90000), what syntax would I need to use in javascript to only get 90000?
0
metalteck
Asked:
metalteck
1 Solution
 
leakim971PluritechnicianCommented:
var value = "(90000)";
value = value.replace(/\(|\)/g,"");
// now value = 90000

Open in new window

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now