Im sorry for my limited knowledge of perl regular expression It works.. many thanks..
Arvind -----Original Message----- From: Daniel F. Savarese [mailto:[EMAIL PROTECTED]] Sent: Friday, March 08, 2002 6:28 PM To: ORO Users List Subject: Re: weird problem... In message <6757931EA0D9D3118B8E00C04FA05FB08A606D@pansvr02>, Arvind Gudipati w rites: >Now when i use the regular expression of the form >/start\n([^end]*\n)*end\n/ > >it works fine excpet when the data is >****** >start >jon >end >****** >If i change jon to jim (or whatever) it works fine... im not sure what the >problem is.. can someone help me. [^end] means match any character except for 'e', 'n', or 'd', so 'jon' doesn't match [^end]* because it has an 'n' in it. I think you meant to use a zero-width negative lookahead assertion. Try (?!end).*\n instead of [^end]*\n daniel -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> CONFIDENTIALITY NOTICE: E-mail may contain confidential information that is legally protected. Do not read this e-mail if you are not the intended recipient. This e-mail transmission, and any documents, files or previous e-mail messages attached to it may contain confidential information that is legally protected. If you are not the intended recipient or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. If you have received this transmission in error, please immediately notify us by reply e-mail, by forwarding this to [EMAIL PROTECTED] or by telephone at (877) PANACYA, and destroy the original transmission and its attachments without reading or saving in any manner. Thank you. For information about PANACYA Inc., please visit our website at http://www.panacya.com.