skip to main content

Library Routines : C$REPLACE_ALL

C$REPLACE_ALL
The C$REPLACE_ALL library routine allows to replace parts of text in an alphanumeric variable according to a regular expression.
Syntax
 CALL "C$REPLACE_ALL" USING variable
Parameters
Return code:
returnCode can be any signed numeric data item and provides additional information:
Examples:
Example - Replace the beginning of a string with a prefix
move " second third fourth" to wrk-str
move "^" to search-reg-exp | Search for the beginning of the string
move "first" to new-text
call "c$replace-all" using wrk-str 

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left