About 50 results
Open links in new tab
  1. 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 ...

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

    123 Only 1 and 3 are matched by the regex \d; 2 is not. Generally for a sequence of digit numbers without other characters in between, only the odd order digits are matches, and the even order …

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

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

  5. regex - why does `^ [^ [:digit:]]` match a digit and a new line ...

    Jun 17, 2015 · In Emacs's regex, why does ^ [^ [:digit:]] match a digit and a new line character before the digit, e.g. it will matches the whole of the second and the third line of 1 1 but not the …

  6. Getting each individual digit from a whole integer

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

  7. Convert char to int in C and C++ - Stack Overflow

    Feb 17, 2011 · From my extensive experience on other technical forums, my intuition is that the OP really means "how do I take the textual representation of a number (in base 10) and …

  8. 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, 8 months ago Viewed 1.0m times

  9. Difference between Char.IsDigit() and Char.IsNumber() in C#

    Oct 23, 2008 · This contrasts with IsDigit, which determines if a Char is a radix-10 digit. Valid numbers are members of the following categories in UnicodeCategory: DecimalDigitNumber …

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