From: "Baptiste j." Date: 2012-08-08T09:30:33+09:00 Subject: find special text and transform it in a variable name Hello ! I'm completely stuck here. I've been reading the Ruby documentation from side to side on regexp and string but I could not manage to find an answer. so I'm Using a .txt file inside it is written : Blablabla #{$class.method}. When I import it the text is converted into a string and it displays exactly what is written. How can I do to make it automatically replace #{$class.method} by the real text returned by $class.method? Thank you for your time. -- Posted via http://www.ruby-forum.com/.