Parsing input from user in any order or format
<p>I am having some trouble trying to figure out how to parse information collected from user. The information I am collecting is:</p>

<ul>
<li>Age</li>
<li>Sex</li>
<li>Zip Code</li>
</ul>

<p>Following are some examples of how I may receive this from users:</p>

<ul>
<li>30 Male 90250</li>
<li>30/M/90250</li>
<li>30 M 90250</li>
<li>M 30 90250</li>
<li>30-M-90250</li>
<li>90250,M,30</li>
</ul>

<p>I started off with explode function but I was left with a huge list of if else statements to try to see how the user separated the information (was it space or comma or slash or hypen)</p>

<p>Any feedback is appreciated.</p>

<p>Thanks</p>
