StringExtensions.RightAfterLast Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

Overloads

RightAfterLast(string, string, int, StringComparison?) Returns a string containing every character within a string after the last occurrence of another string.
RightAfterLast(string, string, StringComparison?) Returns a string containing every character within a string after the last occurrence of another string.

RightAfterLast(string, string, int, StringComparison?)

Returns a string containing every character within a string after the last occurrence of another string.

public static string RightAfterLast(this string original, string search, int startIndex, StringComparison? comparisonType = default(StringComparison? ))

Parameters

original
string

Required. String expression from which the rightmost characters are returned.

search
string

The string where the end of it marks the characters to return. If the string is not found, the whole string is returned.

startIndex
int

The start index.

comparisonType
System.StringComparison?

Determines whether or not to use case sensitive search.

Returns

string

A string containing every character within the original string after the last occurrence of the search string.

RightAfterLast(string, string, StringComparison?)

Returns a string containing every character within a string after the last occurrence of another string.

public static string RightAfterLast(this string original, string search, StringComparison? comparisonType = default(StringComparison? ))

Parameters

original
string

Required. String expression from which the rightmost characters are returned.

search
string

The string where the end of it marks the characters to return. If the string is not found, the whole string is returned.

comparisonType
System.StringComparison?

Specifies the culture, case, and sort rules to be used.

Returns

string

A string containing every character within the original string after the last occurrence of the search string.