How to compare alphanumeric value in c#?

Posted by Gudevg under C# on 4/26/2012 | Points: 10 | Views : 1512 | Status : [Member] | Replies : 1
Good Morning,

I develop a code to get numbers as input from word file and compare it with the contents. It works properly

Here is the code with conditions

strFilterWord = 
strWord.Replace ("(", string.Empty).Replace(')', ' ').Replace('.', ' ').Replace(';', ' ').
Replace(':', ' ').Trim();if (strFilterWord.Length == 4)
if (Convert.ToInt32(strFilterWord) > 1900
&& Convert.ToInt32(strFilterWord) < 2012)


Note:
1) For the above code i use the condition: Input value is occur in four digits and it is between 1900 to 2012. (Year)
2) In a paragraph the year information is occur only once.


Similarly i need to compare the alphanumeric value [Ex: 2012a].


Regards,

Deepakkumar G.


Responses

Posted by: Gudevg on: 4/26/2012 [Member] Starter | Points: 25

Up
0
Down
Any update regarding this?

Deepakkumar G.

Gudevg, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response