Loading

REPLACEALL

strings

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.

REPLACEALL is available since version 1.1.0.

See also

Signatures

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