Home Cart [Log In] About Us Contact Us

Object Reference

xf_StringCaseSensitiveString Functions

Public Function ReplaceIdentifier (
str As String,
find As String,
Optional ReplaceWith As String = ""
) As String

Replace all occurrences of an alphanumeric identifier in a string. The identifier must be surrounded by non alphanumeric characters or at the start or end of the string.

str as String

The string to modify

find as String

The identifier to remove

Optional ReplaceWith as String = ""

The text to insert in place of the identifier

Call Template:

Dim s As String
s = xf.StrCS.ReplaceIdentifier(str, find)
s = xf.StrCS.ReplaceIdentifier(str, find, ReplaceWith)

See Also:

Example 1:

xf.Str.ReplaceIdentifier("(Pos + StartPos + EndPos) * Pos", "Snapper")     => (Snapper + StartPos + EndPos) * Snapper
Contact Us :: About Us :: Policies :: email: infspamo@arrospamw-of-tispamme.com    © 2012 Arrow Of Time Pty Ltd