About 8,740,000 results
Open links in new tab
  1. What's the difference between str.isdigit (), isnumeric () and ...

    s.isdigit() s.isnumeric() s.isdecimal() I always get as output either all True or all False for each value of s (which is a string). What's the difference between the three? Can you provide an …

  2. How to take the nth digit of a number in python - Stack Overflow

    Sep 23, 2016 · This solution solves many more "digit of a number" problems than the one using integer division and modulus. Try to find the leading (left-most) digit of the following numbers …

  3. python - Does "\d" in regex mean a digit? - Stack Overflow

    Decimal digit character: \d \d matches any decimal digit. It is equivalent to the \p {Nd} regular expression pattern, which includes the standard decimal digits 0-9 as well as the decimal digits …

  4. Regex for numbers only in C# - Stack Overflow

    Dec 16, 2019 · @Najeeb Yes, since Indian zip codes are 6-digit numbers, you can use something like "^\d{6}$". Some other countries have more complicated rules for zip codes, so regex …

  5. Shorter way to check if a string is not isdigit () - Stack Overflow

    May 2, 2013 · For the sake of learning, is there a shorter way to do: if string.isdigit() == False : I tried: if !string.isdigit() : and if !(string.isdigit()) : which both didn't work.

  6. Regular expression to match standard 10 digit phone number

    Regular expression to match standard 10 digit phone number Asked 12 years, 5 months ago Modified 1 year, 7 months ago Viewed 1.0m times

  7. t sql - Check if a varchar is a number - Stack Overflow

    Dec 16, 2019 · Is there an easy way to figure out if a varchar is a number? Examples: abc123 --> no number 123 --> yes, its a number

  8. regex - any number of digits + digit or [a-z] - Stack Overflow

    Nov 23, 2018 · I am trying to write a regular expresion that checks if a string starts with a number of digits (at least one), and then immediately ends with a single letter or a digit.

  9. math - C: how to break apart a multi digit number into separate ...

    Feb 3, 2018 · Say I have a multi-digit integer in C. I want to break it up into single-digit integers. 123 would turn into 1, 2, and 3. How can I do this, especially if I don't know how many digits …

  10. Regex to match digits of specific length - Stack Overflow

    Both of these forms are supported in Python's regular expressions - look for the text {m,n} at that link. And keep in mind that \d{15} will match fifteen digits anywhere in the line, including a 400 …