Hi Everyone,

I'm extremely stuck on this simple regex question, which I'm sure
someone with a little more experience will be able to write in a
second. I would really appreciate the help.

Given a string consisting of a's, b's, and spaces:  "aaa bbb abb ab
bb"

I want to tokenize this into string's of a's and b's.
  eg. "aaa", "bbb", "a", "bb", "a", "b", "bb"

AND also, I have to be able to tell which of the strings of b's was
preceded with an "a", and which was preceded by a space.

Thanks a lot for your help
  -Patrick

-- 
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

Reply via email to