Excellent! This is exactly what I'm looking for; thanks everyone for their help.
On May 13, 10:13 pm, Justin Kramer <jkkra...@gmail.com> wrote: > clojure.contrib.string/partition does exactly what you're looking for. > > (require 'clojure.contrib.string) > (clojure.contrib.string/partition #"\s+" "ab c de") > ;; ("ab" " " "c" " " "de") > > Justin > > On May 13, 12:24 pm, joshua-choi <rbysam...@gmail.com> wrote: > > > I'd like to know if there's a standard function similar to > > clojure.contrib.string/split that includes the characters between the > > spitted string, or if there isn't one, how I might write one. In other > > words, I'd like a function split* such that (split* #"\s+" "ab c de") > > returns ("ab" " " "c" " " "de"). > > > -- > > You received this message because you are subscribed to the Google > > Groups "Clojure" group. > > To post to this group, send email to clojure@googlegroups.com > > Note that posts from new members are moderated - please be patient with > > your first post. > > To unsubscribe from this group, send email to > > clojure+unsubscr...@googlegroups.com > > For more options, visit this group > > athttp://groups.google.com/group/clojure?hl=en > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with your > first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group > athttp://groups.google.com/group/clojure?hl=en -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en