About 1,990,000 results
Open links in new tab
  1. In Python, how do I check if a string has alphabets or numbers?

    @Owalla I assume the alnum part of isalnum() stands for alphanumeric, which essentially means contains letters or numbers. Sounds as if Python has a built-in string method to do this test for …

  2. Stripping everything but alphanumeric chars from a string in Python

    What is the best way to strip all non alphanumeric characters from a string, using Python? The solutions presented in the PHP variant of this question will probably work with some minor …

  3. python - Checking if any character in a string is alphanumeric

    Checking if any character in a string is alphanumeric Asked 8 years, 6 months ago Modified 7 years, 8 months ago Viewed 57k times

  4. Python regular expression to check alphanumeric - Stack Overflow

    Mar 12, 2015 · 3 Im using the below regular expression to check if a string contains alphanumeric or not but I get result = None.

  5. python - Efficiently generate a 16-character, alphanumeric string ...

    df008b2e24f947b1b873c94d8a3f2201 Note that the OP asked for a 16-character alphanumeric string, but UUID4 strings are 32 characters long. You should not truncate this string, instead, …

  6. python - How to keep only alphanumeric and space, and also …

    Apr 29, 2019 · How to keep only alphanumeric and space, and also ignore non-ASCII? Asked 6 years, 7 months ago Modified 3 years, 4 months ago Viewed 62k times

  7. Python, remove all non-alphabet chars from string

    Mar 30, 2015 · I am writing a python MapReduce word count program. Problem is that there are many non-alphabet chars strewn about in the data, I have found this post Stripping everything …

  8. python - How to remove non-alphanumeric characters at the …

    10 I have a list with elements that have unnecessary (non-alphanumeric) characters at the beginning or end of each string. Ex.

  9. python - How to sort a list containing alphanumeric values?

    How to sort a list containing alphanumeric values? Asked 12 years, 1 month ago Modified 3 years, 6 months ago Viewed 19k times

  10. python - Replace all non-alphanumeric characters in a string

    Oct 20, 2012 · Now there is a pythonic way of solving this just in case you don't want to use any library. You can just loop through your string and save alpha-numeric characters in a list, …