in reply to Character matching in a word?

if( substr( $word, 2, 3 ) eq $match ) { ...

Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
"Memory, processor, disk in that order on the hardware side. Algorithm, algorithm, algorithm on the code side." - tachyon

Replies are listed 'Best First'.
Re^2: Character matching in a word?
by ausag (Initiate) on Sep 21, 2004 at 17:40 UTC
    Thanks for that!