Showing posts with label #replace. Show all posts
Showing posts with label #replace. Show all posts

Friday, 27 May 2016

Replace all occurrences of

Replace all occurrences of

  • Used to replace all the occurrences  in the given string.

Ex :

Source Code


PARAMETERS txt TYPE string.


REPLACE all OCCURRENCES OF  'A' IN  txt WITH 'B'.


WRITE txt.





Input




Output



---------------------------------------------------------------------------------

Replace

Replace


  • Replace command replace only 1st occurrence in String.

Ex :

Source Code


PARAMETERS txt TYPE string.


REPLACE 'A' WITH 'B' INTO txt.


WRITE txt.



Input


Output