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]>