#0|0|0|3# - #0|0|1|3 excel_value.to_s.slice(/#.*#/)
Gives me this #0|0|0|3# - #0|0|1|3 how do I get rid of the "-"? I've tried and a few others puts excel_value.to_s.slice(/#.*|.*|.*|.*#/) Gives me this #0|0|0|3# - #0|0|1|3 I'm trying to include the '|' bars in the slice Thanks On Feb 25, 9:43 am, "Darin Duphorn" <dduph...@redbrickhealth.com> wrote: > That worked > > Thanks > > Darin > > > > -----Original Message----- > From: watir-general@googlegroups.com > > [mailto:watir-gene...@googlegroups.com] On Behalf Of Ravi > Sent: Wednesday, February 25, 2009 9:39 AM > To: Watir General > Subject: [wtr-general] Re: slice question > > .slice(/\*.*\*/) > > On Feb 25, 9:30 am, Moochie <dduph...@redbrickhealth.com> wrote: > > I want to slice around tow * *, but the following doesn't work. > > > .slice(/*.**/) > > > I belive it because of the two * next to each other. Is thier a way I > > can make this work? > > > Thanks, > > > Darin- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---