addicktz
asked on
Replace Double Character with Single Character
if I have a string
string a = "ee-----ee--ee----ee-";
and I wanted the string to be
string a = "ee-ee-ee-ee";
what regex expression would I use?
I have tried a variety combos without success, any ideas?
a = Regex.Replace(a, "[-]?", "-");
string a = "ee-----ee--ee----ee-";
and I wanted the string to be
string a = "ee-ee-ee-ee";
what regex expression would I use?
I have tried a variety combos without success, any ideas?
a = Regex.Replace(a, "[-]?", "-");
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ack. nevermind =]
ASKER