I would like to capture anything up to, but not including a particular patter. My actual problem has to do with parsing out information from html, but I am distilling the problem down to an example to, hopefully, clarify my question.
Source
xaxbxcabcabc
Desired Match
xaxbxc
If I use a lookahead the expression will capture the first occurrence
.*(?=abc) => xaxbxcabc
I would like something along the lines of a negated character class, just for a negated pattern.
.*[^abc] //where abc as a pattern instead of a list giving anything but a, b or c
I am using http://derekslager.com/blog/posts/2007/09/a-better-dotnet-regular-expression-tester.ashx for testing