Replace

From UBot Studio
Revision as of 18:15, 14 November 2012 by LillyT (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

$replace is a Text Function.

The function returns the original text with all instances of the search text replaced by the replace text.

Example

navigate("http://www.ubotstudio.com/playground/simple-form", "Wait")
wait(3)
type text(<about me textarea>, $replace("I like UBot Studio", "like", "love"), "Standard")

The original text being altered is the sentence "I like UBot Studio." Running the script replaces the search text "like" with the replace text, which is "Love". The resulting sentence is "I love UBot Studio".

File:Replace.png

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox