I'm not sure about what you want since you're not really clear, but see the /help /filter, with -g, you can perfom a regex match on each line of a text file and then do what you want with them.
For example :
filter -g texto.txt output.txt /\b(españa|español|española|madrid)\b/giS
fill output.txt with all lines that match the regular expression.