About 784,000 results
Open links in new tab
  1. Split a string by a delimiter in Python - Stack Overflow

    To split on whitespace, see How do I split a string into a list of words?. To extract everything before the first delimiter, see Splitting on first occurrence. To extract everything before the last …

  2. Split a string by backslash in python - Stack Overflow

    Split a string by backslash in python Asked 11 years, 5 months ago Modified 5 years, 1 month ago Viewed 110k times

  3. Split string with multiple delimiters in Python - Stack Overflow

    Split string with multiple delimiters in Python [duplicate] Asked 14 years, 11 months ago Modified 2 years ago Viewed 1.6m times

  4. How to split by comma and strip white spaces in Python?

    I have some python code that splits on comma, but doesn't strip the whitespace:

  5. How do I split a string into a list of words? - Stack Overflow

    To split on other delimiters, see Split a string by a delimiter in python. To split into individual characters, see How do I split a string into a list of characters?.

  6. python - How do I split a multi-line string into multiple lines ...

    Reading files in text mode partially mitigates the newline representation problem, as it converts Python's \n into the platform's newline representation. However, text mode only exists on …

  7. regex - Split string on whitespace in Python - Stack Overflow

    Split string on whitespace in Python [duplicate] Asked 14 years, 2 months ago Modified 3 years, 5 months ago Viewed 1.2m times

  8. python - Splitting on first occurrence - Stack Overflow

    What would be the best way to split a string on the first occurrence of a delimiter? For example: "123mango abcd mango kiwi peach" splitting on the first mango to get: " abcd …

  9. Splitting on last delimiter in Python string? - Stack Overflow

    428 What's the recommended Python idiom for splitting a string on the last occurrence of the delimiter in the string? example:

  10. Python: str.split () - is it possible to only specify the "limit ...

    May 25, 2015 · 5 Split string on consecutive whitespace † at most maxsplit times †† † Resulting list will contain no leading or trailing empty strings ("") if the string has leading or trailing …