import re

def main():
    line = "asdf fjdk; afed, fjek,asdf,     foo"
    print(re.split(r'[;,\s]\s*', line))
    print("With capture group:")
    print(re.split(r'(;|,|\s)\s*', line))
    print("Non capture group:")
    print(re.split(r'(?:;|,|\s)\s*', line))

if __name__ == "__main__":
    main()
4bba05e05d8569cefda7f1a1af1de1b50bbd7e9f
<mask token>

<mask token>


def main():
    line = 'asdf fjdk; afed, fjek,asdf,     foo'
    print(re.split('[;,\\s]\\s*', line))
    print('With capture group:')
    print(re.split('(;|,|\\s)\\s*', line))
    print('Non capture group:')
    print(re.split('(?:;|,|\\s)\\s*', line))


<mask token>

<mask token>


def main():
    line = 'asdf fjdk; afed, fjek,asdf,     foo'
    print(re.split('[;,\\s]\\s*', line))
    print('With capture group:')
    print(re.split('(;|,|\\s)\\s*', line))
    print('Non capture group:')
    print(re.split('(?:;|,|\\s)\\s*', line))


if __name__ == '__main__':
    main()

import re


def main():
    line = 'asdf fjdk; afed, fjek,asdf,     foo'
    print(re.split('[;,\\s]\\s*', line))
    print('With capture group:')
    print(re.split('(;|,|\\s)\\s*', line))
    print('Non capture group:')
    print(re.split('(?:;|,|\\s)\\s*', line))


if __name__ == '__main__':
    main()

import re

def main():
    line = "asdf fjdk; afed, fjek,asdf,     foo"
    print(re.split(r'[;,\s]\s*', line))
    print("With capture group:")
    print(re.split(r'(;|,|\s)\s*', line))
    print("Non capture group:")
    print(re.split(r'(?:;|,|\s)\s*', line))

if __name__ == "__main__":
    main()