From: shawn bright Date: 2009-02-05T15:32:47+09:00 Subject: Re: a simple command that splits up a string into numbers and letters --0016e64615b0f980e00462260f62 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit sorry, how do i split on a \d+ ? sk On Thu, Feb 5, 2009 at 12:14 AM, Tim Greer wrote: > shawn bright wrote: > > > [Note: parts of this message were removed to make it a legal post.] > > > > Hey all, > > > > i am looking for an easy way to split a string into letters and > > numbers. so if i had a string '34JKBY103' i could get ['34', 'JKBY', > > '103'] > > > > I could write up something, but thought that if there was already > > something out there that i hav'nt found, it would probably be cleaner. > > thanks > > > > sk > > I don't know if there's anything out there now (there might be), but it > seems pretty simple. Just split on either \d+ or \D+, depending > (unless I'm missing something in your requirement)? > -- > Tim Greer, CEO/Founder/CTO, BurlyHost.com, Inc. > Shared Hosting, Reseller Hosting, Dedicated & Semi-Dedicated servers > and Custom Hosting. 24/7 support, 30 day guarantee, secure servers. > Industry's most experienced staff! -- Web Hosting With Muscle! > > --0016e64615b0f980e00462260f62--