Search code examples
pythonpython-3.xtextsplitdelimiter

Split strings using Group Separator (GS)


How would I use Python's split() on a text file using ASCII decimal 29 Group Separator for separator?

I have text files that Notepad++ displays GS icons between chunks of text which I believe are Group Separators.


Solution

  • zwer has provided a solution in a comment:

    You can easily define your ASCII char from your code: .split(chr(29))