nl_tokens: Replace all occurances of a string in a string
pl_tokens: function replaceAll ( ) { var input = arguments . <mask> > 0 && arguments [ 0 ] !== undefined ? arguments [ 0 ] : '' ; var find = arguments . length > 1 && arguments [ 1 ] !== undefined ? arguments [ 1 ] : '' ; var replace = arguments . length > 2 && arguments [ 2 ] !== undefined ? arguments [ 2 ] : '' ; return input . replace ( new RegExp ( find . toString ( ) . replace ( / ([.*+?^=!:${}()|[\]/\\]) / g , '\\$1' ) , 'g' ) , replace . toString ( ) ) ; }