I am new to regex, but I am assuming it provides a better way to do
what I need.
I want to write a custom trim functions that will remove all
occurrences of a non-whitespace character from the beginning or end of
a functions
TrimEnd(string Original, string Pad)
TrimStart(string Original, string Pad)
-Where Pad is a string with a length of 1.
So, TrimEnd("12345XXX", "X") would give "12345".
I know I can do this in a less elegant (and slower) way without Regex,
but this operation will happen frequently.
I am starting to learn Regex, but could use the help to get this
implementation detail knocked out.
TIA,
Dan