++++++++++++++++++++++++++++++++++++++++++++++++++ Please read the disclaimer at the bottom of this e-mail. ++++++++++++++++++++++++++++++++++++++++++++++++++ TMTOWTDI. I havent got my "Mastering regular Expressions Book" at hand, so Im sure the syntax is wrong, but you get the drift... if($string =~/(.{300})stringtomatch(.{200})/}{ if ($1 = /look for/)[ .... } if ($2 = /whatever/){ ... } } Regards Kevin Cornmell LCH Tech Ops CA Ingres DBA 020 7426 7061 --------------------------------------------------------------------------------------------------------------------- This email is intended for the named recipient(s) only. Its contents are confidential and may only be retained by the named recipient(s) and may only be copied or disclosed with the consent of The London Clearing House (LCH). If you are not an intended recipient please delete this e-mail and notify postmaster@lch.co.uk. The contents of this email are subject to contract in all cases, and LCH makes no contractual commitment save where confirmed by hard copy. LCH accepts no liability, including liability for negligence, in respect of any statement in this email. The London Clearing House Limited, Registered Office: Aldgate House, 33 Aldgate High Street, London EC3N 1EA. Recognised as a Clearing House under the Financial Services Act 1986. Reg in England No.25932 Telephone: 020 7426 7000 Internet: http://www.lch.co.uk ---------------------------------------------------------------------------------------------------------------------Thread Previous | Thread Next