Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Can someone tell what the /\D/g.'' mean in newValue.replace(/\D/g,'')

wbrown1
Mega Contributor

Can someone tell what the  /\D/g.'' mean in  newValue.replace(/\D/g,'') and what other option there are or where the documentation could be found. I am trying to use this to force the client to enter a whole number and no decimals.

1 ACCEPTED SOLUTION
1 REPLY 1

Michael Fry1
Kilo Patron