RETAIN$ function
Purpose: RETAIN$ returns a string containing Source$ characters that match characters found in Mask$.
Syntax: RetStr$ = RETAIN$(Source$, Mask$) Parameters:
|
Example:
DIM a$,b$,c$ a$ ="<p>1234567890<ak;lk;l>1234567890</p>" b$ = RETAIN$(a$, "<;/p>") c$ = RETAIN$(a$, "0123456789") PRINT b$ ' result should contain: <p><;;></p> PRINT c$ ' result should contain: 12345678901234567890