g*****g 发帖数: 34805 | 1 【 以下文字转载自 Programming 讨论区 】
发信人: goodbug (好虫), 信区: Programming
标 题: regular expression for whitespace in path
发信站: BBS 未名空间站 (Mon Dec 11 15:10:02 2006), 转信
I am writing a shell like program which should be able to parse
mycommand path="/path/my program/..." file=....
how do I write a regex that will split strings with space but not
between matching quotations marks like in path? Thanks for any input. |
|