I'm cleaning up a search string and need to remove any periods that appear but keep decimal points when they are between two digits.
For example if I have a string
599.75, Tigers.
Then I would like it to come back as
599.75, Tigers
I was thinking a line like:
strNewString = RegEx.Replace(strOrigString, strRegEx, string.Empty);
Where strRegEx would match just the .'s to remove but I'm having a hard time figuring out how to match only the . and not the things surrounding it as well.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…