About 11,000,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. 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 …

  3. regex - Grep regular expression for digits in character string of ...

    I need some way to find words that contain any combination of characters and digits but exactly 4 digits only, and at least one character. EXAMPLE: a1a1a1a1 // Match 1234 // NO ...

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

  6. Regular expression to match standard 10 digit phone number

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

  7. Getting each individual digit from a whole integer

    Getting each individual digit from a whole integer Asked 15 years, 4 months ago Modified 1 year, 5 months ago Viewed 170k times

  8. How to split an integer into a list of digits? - Stack Overflow

    Dec 15, 2009 · 197 Convert the number to a string so you can iterate over it, then convert each digit (character) back to an int inside a list-comprehension:

  9. regex - Decimal number regular expression, where digit after …

    Aug 25, 2012 · I need a regular expression that validates a number, but doesn't require a digit after the decimal. ie. 123 123. 123.4 would all be valid 123.. would be invalid Any would be …

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