Hi all,
I would like  to match a string variable in a longer string  retreiveing
the match plus 5 extra characters at each side of the
match.
This what I mean:

$var = 'something';
$line = 'SDFGHAsomethingWDFTsft';

and, I would like  to get in a new variable the string
'DFGHAsomethingWDFTs'.
Any help in doing this will be very appreciated.

Cheers

Pedro
*******************************************************************
PEDRO A. RECHE , pHD            TL: 617 632 3824
Dana-Farber Cancer Institute,   FX: 617 632 4569
Harvard Medical School,         EM: [EMAIL PROTECTED]
44 Binney Street, D1510A,       EM: [EMAIL PROTECTED]
Boston, MA 02115                URL:
http://www.reche.org
*******************************************************************

Reply via email to