Axaptapedia is now maintained by AgileCadence For more information please click here.

StrKeep

From Axaptapedia
Jump to: navigation, search

StrKeep[edit]

Syntax[edit]

<xpp> str StrKeep( str text1, str text2 ) </xpp>

Description[edit]

Deletes all of those characters in the text string specified by text1 which are not included in the list of characters specified in text2. That is, text2 specifies which characters to 'keep' in text1.

Example[edit]

<xpp> StrKeep("ssd w344 56; -sd33","1234567890") //returns the text string "3445633". </xpp>

Note[edit]

StrKeep is complementary to StrRem.

See also[edit]