G
Guest
I have built a class called DTLineScrub that inherits Regex.
All works well with the code below until I try to do a replace on a string.
It then tells me that the object was not instantiated.
Anyone have an Idea what's going on?
Much Appreciated!
Rob
string myTEST = "ABE'\"TH|IS";
DTLineScrub dtls = new DTLineScrub();
dtls.CustomRegularExpression = @"[\cA-cZ]";
MessageBox.Show( dtls.ToString() );
myTEST = dtls.Replace(myTEST," ");
MessageBox.Show( myTEST );
All works well with the code below until I try to do a replace on a string.
It then tells me that the object was not instantiated.
Anyone have an Idea what's going on?
Much Appreciated!
Rob
string myTEST = "ABE'\"TH|IS";
DTLineScrub dtls = new DTLineScrub();
dtls.CustomRegularExpression = @"[\cA-cZ]";
MessageBox.Show( dtls.ToString() );
myTEST = dtls.Replace(myTEST," ");
MessageBox.Show( myTEST );