Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

C# replace all . except last one

int lastIndex = value.LastIndexOf('.');
if (lastIndex > 0)
{
    value = value.Substring(0, lastIndex).Replace(".", "")
        + value.Substring(lastIndex);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #replace
ADD COMMENT
Topic
Name
3+1 =