Re: Help on string manip

2008-08-13 Thread Dr.Ruud
"DeeDee Messersmith" schreef: > I have strings such as the following: > > .INSERT,SCREW THREAD.. > > I need the leading dots but not the trailing. As you see it has > commas and spaces in it so the traditional \w doesn't work. the .* > doesn't work as it picks up the trailing dots. T

Re: Help on string manip

2008-08-11 Thread anexpert
On Mon, Aug 11, 2008 at 5:02 PM, DeeDee Messersmith <[EMAIL PROTECTED]> wrote: > I have strings such as the following: > > .INSERT,SCREW THREAD.. > > I need the leading dots but not the trailing. As you see it has commas and > spaces in it so the traditional \w doesn't work. the .* doe

Re: Help on string manip

2008-08-11 Thread yitzle
On Mon, Aug 11, 2008 at 5:02 PM, DeeDee Messersmith <[EMAIL PROTECTED]> wrote: > I have strings such as the following: > > .INSERT,SCREW THREAD.. > > I need the leading dots but not the trailing. As you see it has commas and > spaces in it so the traditional \w doesn't work. the .* doe

Help on string manip

2008-08-11 Thread DeeDee Messersmith
I have strings such as the following: .INSERT,SCREW THREAD.. I need the leading dots but not the trailing. As you see it has commas and spaces in it so the traditional \w doesn't work. the .* doesn't work as it picks up the trailing dots. The result I want back is: .INSERT,SCREW TH