How would I get a certain part of a string?
<p>Here's an example string:</p>

<pre><code>survey_questions_attributes_1317784471568_answers_attributes
</code></pre>

<p>I want to get the <code>1317784471568</code> out of the string.</p>

<p>But that part could also be text. For example, I may also need to get a string called <code>new_questions</code> from that same spot in the string.</p>

<p>The constant here is that <code>survey_questions_attributes_</code> will always precede the chunk I want and <code>_answers_attributes</code> will always follow it.</p>
