_repl.utl Utility - String Search and Replace

Syntax

call "_repl.utl",target_string$,old_value$,new_value$

Description

The _repl.utl utility searches target_string$r and replaces each instance of old_value$ with new_value$. This is a case-insensitive search.

Parameter

Description

target_string$

String to be searched.

old_value$

Search string.

new_value$

Replacement string.

Example

The following searches for "FOX" and replaces it with "DOG".

STR$="THE QUICK BROWN FOX"
CALL BBEXT$+"_repl.utl",STR$,"FOX","DOG"
PRINT STR$
THE QUICK BROWN DOG

See Also

Alphabetical EUS Utilities

Functional Listing of EUS Utilities