JavaScript - How to get at specific value in a string?
<p>I have a string from which I am trying to get a specif value. The value is buried in the middle of the string.  For example, the string looks like this:</p>

<pre><code> Content1Save
</code></pre>

<p>The value I want to extract is "1";</p>

<p>Currently, I use the built-in substring function to get to remove the left part of the string, like this:</p>

<pre><code>MyString = "Content1Save";
Position = MyString;
Position = Position.substring(7);
alert(Position); // alerts "1Save"
</code></pre>

<p>I need to get rid of the "Save" part and be left with the 1;</p>

<p>How do I do that?</p>

<p>+++++++++++++++++++++++++++++++++++++++++
ANSWER</p>

<pre><code>Position = Position.substr(7, 1);
</code></pre>

<p>QUESTION</p>

<p>What's the difference between these two?</p>

<pre><code>Position = Position.substr(7, 1);
Position = Position.substring(7, 1);
</code></pre>
