Regex Problem[Resolved by pax]
It seems that I am missiing something very basic (am I?) . All I want to do is matching any sequence of characters upto a speical sequence for example XYZ, then continue. I used this pattern:"(?<found>.*)XYZ" . Now if the string is "blah blah XYZ mendhak :P XYZ" I want the group 'found' to have two values, but this pattern ignores the first XYZ and just matches the second. I tried lookahead and behind assertions with no luck. It should be very simple, but I cant do it :o . Please help.