Re: matching query.

2003-11-19 Thread Steve Mayer
ECTED] > Sent: Wednesday, November 19, 2003 3:01 AM > To: Steve Massey > Cc: [EMAIL PROTECTED] > Subject: Re: matching query. > > > Steve, > > Change your regular expression to: > > if ($source =~ /^\b$help\b) > > This sets up $help inside of a word bo

Re: matching query.

2003-11-19 Thread Tore Aursand
On Tue, 18 Nov 2003 21:22:07 +, Steve Massey wrote: > I want to match Help > > Help ## match this > Helps## not match this > > I am using syntax below, but it's not working > > $help = "Help"; > > if ($source =~ /^$help/) Do you really need to use a regular expression to do this?

RE: matching query.

2003-11-19 Thread chetak.sasalu
Steve*2 A small correction if ($source =~ /^\b$help\b/) chetak -Original Message- From: Steve Mayer [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 19, 2003 3:01 AM To: Steve Massey Cc: [EMAIL PROTECTED] Subject: Re: matching query. Steve, Change your regular expression to

Re: matching query.

2003-11-18 Thread James Edward Gray II
On Nov 18, 2003, at 3:22 PM, Steve Massey wrote: Hi all Howdy. I know this should be easy, but I'm at a loss I want to match Help Help ## match this Helps## not match this I am using syntax below, but it's not working $help = "Help"; if ($source =~ /^$help/) if ($source eq $help) ...

Re: matching query.

2003-11-18 Thread Steve Mayer
Steve, Change your regular expression to: if ($source =~ /^\b$help\b) This sets up $help inside of a word boundry. Steve On Tue, Nov 18, 2003 at 09:22:07PM -, Steve Massey wrote: > Hi all > > I know this should be easy, but I'm at a loss > > I want to match Help > > Help ##