Change Variable back to original value after Regex matching.

Posted by Brad Johansen on Stack Overflow See other posts from Stack Overflow or by Brad Johansen
Published on 2010-04-30T01:45:45Z Indexed on 2010/04/30 1:47 UTC
Read the original article Hit count: 316

Filed under:
|

I just "finished" expanding my Palindrome Tester, made in C#. To allow for phrases I added a simple regex match for all non-alphanumeric characters. At the end of the program it states " is(n't) a palindrome." But now with the regex it prints the no spaces/punctuation version of it.

I would like to be able to print the original user input. How do I do that?

Here is my program: http://gist.github.com/384565

© Stack Overflow or respective owner

Related posts about c#

Related posts about beginner