Hello,
I have a problem with Regex in c# pattern.
I want to except set of chars(words) from searching in text. This syntax [^abc] i delete each a, b and c from my search but not a whole word "abc". How can I do it to delete a several words?
using System;
using System.Linq;
// ...
string test = "abc hello there abc this abcxx isabc a test abc";
string x = string.Join(" ", test.Split(' ').Where(i => i != "abc"));
System.Console.WriteLine(x);
Darwen.
www.pinvoker.com - PInvoker - the .NET PInvoke Interface Exporter for C++ Dlls.
And I want to remove every "AT" and "NL" (and in diffrent case other BE, DE). I want to remove exactly "AT" and "NL" not every A or T or N or L, but a whole set of word. How to use Regex?
"^abc$" - this pattern won't work in middle of string's.
Bookmarks