By skoop
via mikenaberezny.com
Submitted: Apr 28 2008 / 15:04
Python has a nice module in the standard library called shlex that parses strings as a Unix shell would. It’s useful for creating your own mini-languages or external DSLs that need to parse quoted strings like the one shown above.
Add your comment