How can i get the value from array without using regex in ruby?
<p>From the array of string I need to get string which starts with age- followed by maximum of 2 digit number and optional '+' sign.</p>

<p>Ex: age-1, age-22, age55, age-1+, age-15+</p>

<p>Following is my array:</p>

<pre><code>arr = ["vintage-colllections","age-5"]
         or
arr = ["vintage-colllections","age-51+"]
</code></pre>

<p>I will extract age "age-5" or "age-51+"  from the array.</p>

<p>I tried following things:</p>

<pre><code>arr.find {|e| e.include?"age-"}
</code></pre>

<p>Works well for other scenarios but in above the 1st element of array also includes (vint)<strong>age-</strong> failing there.</p>

<pre><code>arr.find { |e| /age-\d*\+?/ =~ e} 
</code></pre>

<p>Works fine but I am trying to avoid regex.</p>

<p>Is there any other better approach ?.
Any suggestions are welcome.</p>