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

    The Python documentation notes the difference between the three methods. str.isdigit Return true if all characters in the string are digits and there is at least one character, false otherwise. …

  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. 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 …

  5. 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

  6. How to check if a character in a string is a digit or letter?

    I have the user entering a single character into the program and it is stored as a string. I would like to know how I could check to see if the character that was entered is a letter or a digit. I ...

  7. 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 …

  8. R regular expressions: unexpected behavior of " [:digit:]"

    Nov 1, 2013 · I'd like to extract elements beginning with digits from a character vector but there's something about POSIX regular expression syntax that I don't understand. I would think that …

  9. python - Display number with leading zeros - Stack Overflow

    How do I display a leading zero for all numbers with less than two digits? 1 → 01 10 → 10 100 → 100

  10. How to calculate a checkdigit for a gs1-128 SSCC barcode

    Oct 23, 2023 · python barcode gs1-128 check-digit gs1-databar asked Oct 23, 2023 at 13:21 Shwans 119 1 7