|
Do not quite understand the purpose of the landlord, but according to your requirements, use the following test, the test passes
string yourStr = textBox1.Text;
Match m = Regex.Match (yourStr, ". *? (? <! A) (aa (?! A). *)");
textBox2.Text = m.Groups [1] .Value; //Groups[1].Value is the content to be extracted |
|