Quantcast
Channel: Best way to do this?
Viewing all articles
Browse latest Browse all 4

Best way to do this?

$
0
0

Hello,

I get a string as input that is a series of numbers.

If that string is any series of nines (one or more) then I must make the string equal to ten nines.

For example:

If string == "99998" then leave alone
If string == "19" then leave alone
If string == "9999" then make string = "9999999999"

Ideas?

Thanks!!
Mark


Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>