Skip to content

Removing single quotes for numeric value in string

Ajay Mavatkar

Asked Apr 19, 2017, 3:38 AM EDT1 answer
Share
LinkedInX
How to remove single quotes for numeric value in string(only for numerics, for alphabets it should not remove).
 
for eg.
 
(Last Name Between '200','200' AND (Zipcode = '0' AND Last Name Between 'test1','test2')) 
 
In a above eg. need to remove single quotes for 200 & 0 and not for test1 and test2.

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • +1
    Code
    myString.replace(/[^0-9]/g, '');
    +1