Hi Bart Schaefer, you wrote:
> /(?:toner|ink(?:\s*jet)?|fax|copier)\s+cartridge/i
>
> is probably the way to go.
/\b(?:toner|ink(?:\s*jet)?|fax|copier)\s+cartridge/i
Someone suggested on this list to anchor those tests on word boundaries
to improve performance.
ciao
Klaus
_
On Thu, 23 May 2002, Skip Montanaro wrote:
> Bart> body TONER /(?:toner|ink|fax|copier)\scartridge/i
>
> May I suggest one slight change to that re?
>
> /(?:toner|ink(?:jet)?|fax|copier)\scartridge/i
Yes, in fact,
/(?:toner|ink(?:\s*jet)?|fax|copier)\s+cartridge/i
i
Bart> body TONER /(?:toner|ink|fax|copier)\scartridge/i
May I suggest one slight change to that re?
/(?:toner|ink(?:jet)?|fax|copier)\scartridge/i
--
Skip Montanaro ([EMAIL PROTECTED] - http://www.mojam.com/)
"Excellant Written and Communications Skills required" - seen on c
body TONER /(?:toner|ink|fax|copier)\scartridge/i
___
Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
__