RE: Stripping everything after words found

2002-03-11 Thread Jason Larson
bob ackerman > Cc: [EMAIL PROTECTED] > Subject: Re: Stripping everything after words found > > > You want to extract the LEAST possible...use > > $string =~ s/^(.*?)Call Distance/$1/; > > Tanton > - Original Message - > From: "Daniel Falkenberg

Re: Stripping everything after words found

2002-03-10 Thread Tanton Gibbs
> Any ideas? > > Kind regards, > > Dan > > -Original Message- > From: bob ackerman [mailto:[EMAIL PROTECTED]] > Sent: Monday, 11 March 2002 3:47 PM > To: Daniel Falkenberg > Cc: [EMAIL PROTECTED] > Subject: Re: Stripping everything after

RE: Stripping everything after words found

2002-03-10 Thread Daniel Falkenberg
, 11 March 2002 3:47 PM To: Daniel Falkenberg Cc: [EMAIL PROTECTED] Subject: Re: Stripping everything after words found oh - you didn't want to include 'Call Distance'? then: ($test) = $string =~ /(.*)Call Distance/; would only capture text up to 'Call Distance'. Needn&

Re: Stripping everything after words found

2002-03-10 Thread bob ackerman
oh - you didn't want to include 'Call Distance'? then: ($test) = $string =~ /(.*)Call Distance/; would only capture text up to 'Call Distance'. Needn't worry about rest of string. On Sunday, March 10, 2002, at 08:54 PM, bob ackerman wrote: > how about: > ($test) = $string =~ /(.*Call Distance

Re: Stripping everything after words found

2002-03-10 Thread bob ackerman
how about: ($test) = $string =~ /(.*Call Distance)/; On Sunday, March 10, 2002, at 08:27 PM, Daniel Falkenberg wrote: > $string = "Crud I want Call Distance more crud skdafj 343sad55434 "; > > How would I go about getting rid of everything after the Call distance > and including the Call Distan

Stripping everything after words found

2002-03-10 Thread Daniel Falkenberg
Hey All, If I have a string that looks like the following... $string = "Crud I want Call Distance more crud skdafj 343sad55434 "; How would I go about getting rid of everything after the Call distance and including the Call Distance? Would it be somthing like the following...? ($test) = $stri