I need to parse the arguments of a custom command.
The arguments are separated by whitespace except when they have quotation marks around them.
Example:
23 45.67 "John Marcus" Surname
After parsing it, it should result in [23, 45.67, 'John Marcus', 'Surname']. Would it be better to use a lexer or regex? If lexer, any good modules in CPAN?
In reply to Parsing a line of text items by mikkoi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |