From subsecret
Revision as of 23:08, 29 December 2013 by Steffen Mikkelsen (talk | contribs) (Created page with "=String Splitter (Bash Compatible)= When needing to parse a string into arguments many simply use String.split(" ");. However this fails to handle string with quotes, escaped ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

String Splitter (Bash Compatible)

When needing to parse a string into arguments many simply use String.split(" ");. However this fails to handle string with quotes, escaped quotes, and so on. The UNIX Bash shell has a very simply/efficient/meaningful way of splitting program arguments. This simple java class mimics the way UNIX shell splits strings.

Usage

   List<String> splitString = StringSplitter.split(...);

Download

Date Version File Description
29. December 2013 1.00 http://files.subsecret.dk/StringSplitter100.zip Initial release

License

No license. Do whatever you want with it.