Hi,
I did a patch using [text] objet that is able to search and replace words in a xml file by a random dictionary. It is working a bit, but with some errors and limitation...
1- Since [text search] is very limited, I use [text get] and loop every line and field to search a field that match my word... but I don't know the maximum field numbers per line, which is a bit annoying...
So I get red errors in the pd console when I am out of field.
2- Because of my [text get] field's looping system, every words need to be surrounded by a space. but the xml tag formatting is a bit limiting here... like "<noun ...>" string cannot match "noun".
Would be very happy to know how to improve it/get rid of some limitation here
Here is the source:
Search_and_replace.zip
Cheers