shawn bright
2/5/2009 7:02:00 AM
[Note: parts of this message were removed to make it a legal post.]
way cool, thanks, all
-sk
On Thu, Feb 5, 2009 at 12:46 AM, DanDiebolt.exe <dandiebolt@yahoo.com>wrote:
> I got it on the first try with this split!
>
> irb> '34JKBY103dfd878dsf78s78s'.split(/([a-zA-Z]+)(?=[0-9])/)
> => ["34", "JKBY", "103", "dfd", "878", "dsf", "78", "s", "78s"]
>
> the first set of parens is capturing while the second set of parents is a
> zero width positive look ahead
>
>