Search For
Flagging a Snippet, takes the snippet to Moderator Attention;


0
REPLACESTR is used when one input string (or more) has to be replaced with another string. Note the following example replace ab and bc with *

Example : Replace old with new
REPLACESTR ( 1, INPUT, 'old', 'new')

INPUTRETURN VALUE
oldnew
oldkeyboardnewkeyboard
old mousenew mouse
holdhnew

Example : More than input with one replacement
REPLACESTR ( 1, INPUT, 'ab', 'bc', '*' )

INPUTRETURN VALUE
abc*c
abbc**
abbbbc*bb*
bc*

Vote! You feel this code is working like charm ? Go a head Login and Press up arrow.
Didn't work ?, press down arrow and let us know the error in comments

Comments