split - Want to separate a string by spaces, but not escaped spaces -
I would like to write some code that will take a string and Regular expression (+ view) is powerful enough for: "" , but No
"\" I usually use
std.array.split for division, but it can not handle it clearly. What will be the best way for me to do?
Import std.regex; Zero Main () {Auto Parts = Split (R "EF repeatedly", Reggae (R "(? & Lt;! \\)")); Emphasis (parts == ["foo", "repeatedly", "falcon"]); }
Comments
Post a Comment