Fuze Arena Logo
  • Forum
  • Creations
    Catalogue Showcase
  • Help

strReplace()

Purpose

Used to find a string within another and replace it.

Description

Receives three strings, a string to search, a string to search for, and string to replace the found string with.

Syntax

newString = strFind( stringVar, to_find, replace )

Arguments

newString Newly created string with the replacement

stringVar The string being checked

to_find The search target

replace The string to replace with

Example

stringVar = "FUSE"
to_find = "S"
replace = "Z"

newString = strFind( stringVar, to_find, replace )

print( newString )
update()
sleep(3)

Associated Commands

str(), strBeginsWith(), strContains(), strEndsWith(), strFind(), stringHash()

logo

©2019 FUZE Technologies Ltd. FUZE is a registered trademark of FUZE Technologies Ltd. All rights reserved.

Useful links

  • Fuze Main Site
  • Fuze Arena on Twitter
  • Fuze Arena on Youtube
  • Download Buyer

Contact Information

  • FUZE Technologies Ltd
    15 Clearfields Farm
    Wotton Underwood
    Aylesbury, Buckinghamshire
    ​England, HP18 0RS

  • +44 (0) 1844 239 432

  • contact@fuze.co.uk

© Copyright FUZE Technologies Ltd. All rights reserved.