Follow

Came up with a simple regular expression to split a string into quoted arguments by shell-like rules:

/'[^']*'|"[^"]*"|`[^`]*`|\S+/g

Sign in to participate in the conversation
Elekk: Gameing and Other Delightful Pursuits

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!