What is the difference between shlex.split() and re.split()?
What is the difference between shlex.split() and re.split()? Question: So I used shlex.split() recently to split a command as argument to subprocess.Popen() function. I recalled that long back I also used re.split() function to split a string with a specific delimiter specified. Can someone point out what is the essential difference in between them? In …
Total answers: 2