Home
Products
Community
Manuals
Contact
Login or Signup

BlitzMax Docs -> 2D - A-Z -> R -> Replace

Replace$( str$,sub$,replaceWith$ )

Returns:

A string with all instances of sub$ replaced by replace$

Description:

Performs a search and replace function

The Replace$ command replaces all instances of one string with another.


Comments

munch(Posted 5 days ago)
Method equivalent is str.Replace( sub,replaceWith ).

' replace.bmx

str$="Hello World!"

Print Replace( str,"ll","dd" )



BlitzMax Manual Forum

Blitz3D Equivalent Command