Loading

REPLACEALL


strings
Since v1.1.0
Available on all platforms
See also

Replaces all occurrence of a pattern by its substitution.

The REPLACEALL consumes 3 parameters from the stack:

  • the replacement value
  • the pattern to search, could be a regular expression
  • the input value

All parameters are converted into strings via the toString() method before the replacement is done.

Signature

Examples

'These is not the droids you is looking for' // input 'is' // pattern 'are' // replacement REPLACEALL 'false is false' // input '(fa..e)' // regexp pattern true // replacement REPLACEALL