vipsi - the friendly vip script interpreter

Instructions

replace

Text functions: replace
Instructions: replace
replace
<text_ref>, <oldtext>, <newtext>

Text functions: replace
Instructions: replace
Replace
in <text_ref> any occurance of <oldtext> with <newtext>. Flow control: if … then
Flow control: try … then
The
target Data Types: Text
Item selector "[]": Text
Glossary: text, text_val
text
Glossary: Variable, var_refvariable is overwritten with Flow control: if … then
Flow control: try … then
the
result of Flow control: if … then
Flow control: try … then
the
conversion.

Flow control: if … then
Flow control: try … then
The
source Data Types: Text
Item selector "[]": Text
Glossary: text, text_val
text
is scanned from left to right Operators: Boolean And with Variable "&&="
Operators: Bitwise And with Variable "&="
Operators: Bitwise And "&"
Operators: Boolean And "&&"
and
replaced Data Types: Text
Item selector "[]": Text
Glossary: text, text_val
text
is Operators: Bitwise Not "~"
Operators: Boolean Negation "!"
not
scanned again. Flow control: if … then
Flow control: if … then
If the
search Data Types: Text
Item selector "[]": Text
Glossary: text, text_val
text
<oldtext> is an empty Data Types: Text
Text functions: string
string
, Flow control: if … then
Flow control: try … then
then
nothing is done.

Version 0.8.7: Text functions: replace
Instructions: replace
replace
Flow control: do … loopdoes Operators: Bitwise Not "~"
Operators: Boolean Negation "!"
not
yet work on Data Types: Lists and arrays
Item selector "[]": Lists
Glossary: list, list_val
lists
. List functions: thisthis will be added in Flow control: if … then
Flow control: try … then
the
near future.

There is also a Vipsi command syntax: Functions
Functions
Glossary: Function
function
Text functions: replace
Instructions: replace
replace
which Flow control: returnreturns Flow control: if … then
Flow control: try … then
the
modified Data Types: Text
Item selector "[]": Text
Glossary: text, text_val
text
.

e.g.:

Text functions: replace
Instructions: replace
replace
html_file, old_homepage, new_homepage

Valid HTML   Valid CSS