Character remapping during conversion?

$validate

Usage: $validate(,)

Following invalid characters will be replaced with ReplaceChar:
034 "
042 *
047 /
058 :
060 <
062 >
063 ?
124 |

"*/:<>?|

$validate allows the colon to exist at position 2 counted from the left edge of the string, when used as the separator for the drive letter.

"E:\abc"
... is allowed

" E:\abc"
... is not allowed and will give ...
" E_\abc"

Examples:

Clean Path $validate($regexp('x ... E: \ ... Music \ ...\ ... Artist *2*\ Title 3 ... x','(?:^|(?<=\\\\))[ .]+|[ .]+(?:(?=\\\\)|$)',),'_') Result = "x ... E_\Music\_Album 1_\Artist _2_\Title 3 ... x" $validate($regexp(' ... E: \ ... Music \ ...\ ... Artist *2*\ Title 3 ... ','(?:^|(?<=\\\\))[ .]+|[ .]+(?:(?=\\\\)|$)',),'_') Result = "E:\Music\_Album 1_\Artist _2_\Title 3" Note: $validate respects the colon at the second string position. $validate($regexp(' ... E: \ ... Music \ ...\ ... Artist *2*\ Title 3 ... ','(?:^|(?<=\\\\))[ .]+|[ .]+(?:(?=\\\\)|$)',),) Result = "E:\Music\Album 1\Artist 2\Title 3" Note: $validate respects the colon at the second string position. $replace

The function $replace(,,) is case-sensitive.
To this function a plurality of 'from,to' pairs can be passed:

$replace(string,from,to[,from,to]...)


Example:

$replace(%TEST%,'ä','ae','ö','oe','ü','ue','Ä','Ae','Ö','Oe','Ü','Ue','ß','ss')

DD.20120201.2145.CET