# WORDONLY()

Intersectional set of two strings based on double characters

Syntax

  WORDONLY (<cThisDoubleCharactersOnly>, <cString>) -> cReducedString

Arguments

  <cThisDoubleCharactersOnly> specifies the double characters that must not be deleted in <cString>. <cString> is the string that should be processed

Returns

  <cReducedString> A string with all double characters deleted but those specified in <cThisCharactersOnly>.

Description

  The WORDONLY() function calculates the intersectional set of two strings based on double characters. To do this, it deletes all double characters from <cString> that do not appear in <cThisDoubleCharacterOnly>.

Examples

          ? WORDONLY("AABBCCDD", "XXAAYYBBZZ")  // "AABB"
          ? WORDONLY("AABBCCDD", "XAAYYYBBZZ")  // "BB"
    Tests
          WORDONLY("AABBCCDD", "XXAAYYBBZZ") == "AABB"
          WORDONLY("AABBCCDD", "XAAYYYBBZZ") == "BB"

Status

  Ready

Compliance

  WORDONLY() is compatible with CT3's WORDONLY().

Platforms

  All

Files

  Source is charonly.c, library is ct3.

See Also

- CHARONLY() CHARREM() WORDREM()