K
Kristian
I have a program which recives a string with an address.
The string has no spesific format and I would like to extract the entrance
character.
some rules for the regular expression: one char, standing alone, can or
canot contain space
string eksample: "flowstreet 2 B"
here i would like to extract the B.
I ve tried
Regex myRegex = new Regex([^a-zA-Z0-9][a-zA-Z]{1}[^a-zA-Z0-9],
RegexOptions.IgnoreCase);
it works if the strign contains a space at the end
string eksample: "flowstreet 2 B " but not when it comes, "flowstreet 2 B" ,
without the space
Anyone who knows whats missing in the regular expression statement ?
Regards
Kriss.
The string has no spesific format and I would like to extract the entrance
character.
some rules for the regular expression: one char, standing alone, can or
canot contain space
string eksample: "flowstreet 2 B"
here i would like to extract the B.
I ve tried
Regex myRegex = new Regex([^a-zA-Z0-9][a-zA-Z]{1}[^a-zA-Z0-9],
RegexOptions.IgnoreCase);
it works if the strign contains a space at the end
string eksample: "flowstreet 2 B " but not when it comes, "flowstreet 2 B" ,
without the space
Anyone who knows whats missing in the regular expression statement ?
Regards
Kriss.