Extract name from name card details
<p>Can anyone tell me how to extract the name from the below detail?</p>

<pre><code>Singapore Polytechnic 

Daniel Rossey
Manager

66556652
test@gmail.com
</code></pre>

<p>I just want to match only name "Daniel Rossey" and my current expression below does not work</p>

<pre><code>^[A-z][A-z|\.|\s]+$
</code></pre>

<p>It will match "Manager" and "Singapore Polytechnic" too. </p>

<p>Please do not suggest me a regular expression like this one below:</p>

<pre><code>\n[A-Z][A-Za-z ]+
</code></pre>

<p>This is because this expression extract "Daniel Rossey" just because it appears on the 3rd line, this cannot work for me as the name will not always belong in the 3rd line for my case.</p>

<p><strong>I want to form a regex that:</strong></p>

<ul>
<li><p>Match names that have 2 up to 4 words</p></li>
<li><p>Exclude words "Polytechnic" or "University"</p></li>
</ul>

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