Question : i need a regexp which eliminate all what's not a number or a ";"

Hello experts,
i'm working on asp.net with c#.

i need to be sure that files i receive dont have different char than "1..9" and ";"
the file can container breaklines, is it necessary to filter them too ?

what would my regex looklike ?
string mycontroledContentfile = Regex.replace(mycontentfile, all_what's_not_number_or_column, empty );

thank you in advaance.

Answer : i need a regexp which eliminate all what's not a number or a ";"

1:
2:
3:
4:
string pattern = "[^(0-9|;)]";
string replacement = string.Empty;
Regex rgx = new Regex(pattern);
string mycontroledContentfile = rgx.Replace(mycontentfile, replacement);
Random Solutions  
 
programming4us programming4us