Hi, How do I split the below string into words..Words can be either a consecutive set of non whitespace characters or anything withn " " 'hi hello "hello world" hey yo' should return [hi, hello, hello world,hey,yo] I tried to somehow do a collect , but not sure if there is a way to retain a variable in between 2 invocations and then concat them and return as one string.. Ofcourse if there is a smart way to do it in one shot using a regex then i can do a scan on the string