Ben, 
I've tried this a few ways and I can't find any way to do a single run RegEx
which will do the job. Handling a single 0 is child's play. Handling
multiple properly is not happening. 
If this was put in a loop, I can see it but.....
What do you suggest as a solution that will handle multiple 0 replaces
without a loop?

> Well, you could use listdeleteat() to remove them.  That would probably
> be more human readable later.  It would also handle boundary cases (ie
> the first and last items) easily and cleanly.
> 
> If, for some reason, you really want to use a regex, it certainly can be
> done.  :-)
> 
> --Ben
> 
> Tony Hicks wrote:
> > Does anyone know if there's a way to replace an unkown number of
> > consequitive 0s in a list with the previous number..
> >
> > For instance...
> >
> > 147,0,119,137,0,0,0,154 would become..
> >
> > 147,147,119,137,137,137,137,154
> >
> > Thanks
> > Tony
> >
> >
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194872
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to