JS On Top
Blog about web development mainly focused on client side.
Pages
Home
JS or jQuery Plugins
Wednesday, September 27, 2017
Get int or float number from a string
Number("this a test (12.75%)".match(/\d*\.*\d+/g)[0]); // Output: 12.75
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment