Checking for special characters using LINQ

Why on earth am I posting this? For the simple reason of hoping if I take the time to put it down on "paper" that I will never have a need to use such a thing again. Call it superstition.
Here is some specific background of why this came about. A scenario came up where I was migrating some test data from one platform to another. Some of the source data was encrypted (even in test system) and for my destination system I didnt care about that data anyway. If I came across any of that encrypted information and would just put blanks in the destination. So in short if a string has special characters, nuke the data and write an empty string.
For what ever reason I wasnt in a Regex mood and looked at LINQ for a solution. Plus it is migration code so who really cares how optimal it is.
The first two lines of this extension method are something I read about and thought, "neat and when would I ever use it". Basically Enumerable.Range will give you a range of of numbers with a starting number and a count.
IEnumerable lowRange = Enumerable.Range(0, 32);
The next albeit messy part takes the input string and converts it to a character array then takes each character and converts it to is ascii code representation.
IEnumerable enumerable = value.ToCharArray().Select(x => Convert.ToInt32(((int)x).ToString()));
The last bit was even more obscure than the range bit. Enumerable.Intersect "Produces the set intersection of two sequences." If you have two lists, {1,2,3} and {3,4,5} the resultant list will be 3 with a .Count() of 1.
This was may more of a post than I hoped but hopefully someone will find it useful and Ill will never have to think about it again!
File under:- Internet Explorer is like
- I Quit My Job And We Are Moving Home To Montana
- LINQPad with Databases
- Stupid Linq Tricks Record Rollup
- Getting started with MVCContrib Filters
- Extension Methods Improving the quality of Life
- C4MVC Reason 42 to Join
- Asp net MVC Session State Extension Method
- Unit Testing Just Do It
- Blog.Start
Posts
- 07 Jun 2010 Internet Explorer is like
- 06 May 2010 I Quit My Job And We Are Moving Home To Montana
- 17 Apr 2010 LINQPad with Databases
- 01 Apr 2010 Stupid Linq Tricks Record Rollup
- 30 Mar 2010 Getting started with MVCContrib Filters
- 23 Mar 2010 Extension Methods Improving the quality of Life
- 22 Mar 2010 C4MVC Reason 42 to Join
- 13 Mar 2010 Checking for special characters using LINQ
- 09 Mar 2010 Asp net MVC Session State Extension Method
- 08 Mar 2010 Unit Testing Just Do It
- 15 Feb 2010 Blog.Start