Logo
Home Cart [Log In] About Us Contact Us

Object Reference

xf_StringCaseSensitiveString Functions

Public Function RemoveFromStartAndEnd (
str As String,
RemoveStr As String
) As String

If the string ends with the search string, remove the search string from the end. If the string start with the search string, remove the search string from the start. The string does not have to be at the start and end to be removed, it may be at either. Otherwise return the passed string unaltered.

str as String

The string to search

RemoveStr as String

The string to match

Call Template:

Dim s As String
s = xf.StrCS.RemoveFromStartAndEnd(str, RemoveStr)

See Also:

Example 1:

1
2
3
xf.Str.RemoveFromStartAndEnd("abracadabra", "abra")     => cad
xf.Str.RemoveFromStartAndEnd("abracadabra!", "abra")    => cadabra!
xf.Str.RemoveFromStartAndEnd("..abracadabra", "abra")   => ..abracad
Contact Us :: About Us :: Policies :: email: infspamo@arrospamw-of-tispamme.com    © 2012 Arrow Of Time Pty Ltd