regular expression for whitespace in path# Java - 爪哇娇娃
g*g
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.
发信人: 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.