This shows you the differences between two versions of the page.
es:replacex [2016/01/01 22:43] |
es:replacex [2020/02/28 10:46] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== Replacex ===== | ||
+ | |||
+ | ==== Formato ==== | ||
+ | **replacex** ( //pajar// , //ExpReg// , //ACadena// ) | ||
+ | |||
+ | ==== Descripción ==== | ||
+ | Devuelve una cadena nueva donde todas las apariciones de subcadenas que se correspondan con la expresión regular //ExpReg// son reemplazadas por //ACadena// en la cadena //pajar//. | ||
+ | |||
+ | ==== Ejemplo ==== | ||
+ | < | ||
+ | a$ = "We all live in a yellow submarine, yellow submarine, yellow submarine." | ||
+ | print Replacex(a$," | ||
+ | print Replacex(a$, | ||
+ | </ | ||
+ | mostrará: | ||
+ | < | ||
+ | We all live in a blue submarine. | ||
+ | Beatles all live in a yellow submarine, yellow submarine, yellow submarine. | ||
+ | </ | ||
+ | |||
+ | ==== Disponible desde la versión ==== | ||
+ | 0.9.6.56 | ||