Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Creator: Bolodefchoco
- --Made in: 02/12/2015
- --Last update: 21/05/2016
- --[[ Notes:
- Does:
- Substitui em str todos os argumentos em listi para listo
- Args:
- str --> String
- listi --> Tabela com os valores para serem substituidos.
- listo --> Tabela com os valores substitutos.
- ]]--
- string.replace=function(str,listi,listo)
- for k,v in next,listi do
- for i=1,#listo do
- str=str:gsub(k,listo[v])
- end
- end
- return str
- end
Advertisement
Add Comment
Please, Sign In to add comment