AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

StringExtensions..::..TrimPunctuation Method

Removes trailing punctuation characters from the end of the string.

Namespace:  AdvantageCMS.Core.Common
Assembly:  AdvantageCMS.Core (in AdvantageCMS.Core.dll)

Syntax


public static string TrimPunctuation(
	this string text
)

Parameters

text
Type: String
The text to trim.

Return Value

The string with trailing punctuation removed.

Examples


C#
string clean = "Hello World...".TrimPunctuation(); // returns "Hello World"