From: "Charlie B." Date: 2012-04-10T02:28:20+09:00 Subject: How to pull out specific part of a variable and set to another variable? I have a variable that is a long string. The variable looks like this: "this sentence is my variable and the important information is {inside these brackets}" The information I need is the information inside the brackets including the brackets themselves, as the brackets are required for when I need to reuse this information. How do I pull out just that piece? It will ALWAYS be in brackets and be the only brackets in that variable. -- Posted via http://www.ruby-forum.com/.