Dear reader, this is a continuation of this thread:
http://community.rapidminer.com/t5/RapidMiner-Studio/Regular-expressions/m-p/37750#M26008
I opened a new one- because the original thread is solved.
I try to grep a word of a text-value to generate a value with the Generate Attribute oparator.
replaceAll(haystack, "hay (.*) hay", "$1")
...doesn't work. I guess I need needle as result, but it never appears in $1-$3 probably because it's replaced.
Alternative methods like match() and find() only deliver true/false.
Is there an example expression and function which collects an arbitrary word of an attribute containing text, to provide a value for a new attribute (without text-extension)?

Needle I need you - Song!
https://www.youtube.com/watch?v=rNS6D4hSQdA