Hide Comments

@TPUNCT[string]: Returns the number of punctuation characters in string, i.e. printable characters which are not alphanumeric or space.

 

See also: @TALNUM, @TALPHA, @TASCII, @TCNTRL, @TDIGIT, @TLOWER, @TPRINT, @TSPACE, @TUPPER, and @TXDIGIT.

 

Examples:

 

echo %@tpunct[.]

1

 

echo %@tpunct[+]

1

 

echo %@tpunct[:-)]

3

 

echo %@tpunct[.,a]

2