U-Boot version extraction for comparision
<p>I am trying to extract U-Boot version from its binary for comparison,<br>
consider that exact string what I want to search is as follow,</p>

<pre><code>U-Boot 2013.07.010 (Mar 21 2016 - 12:07:48)
</code></pre>

<p>so I wrote command with regex as follows,</p>

<pre><code>strings uboot | grep "U-Boot \([0-9]\{4\}.[0-9]\{2\}.[0-9]\{3\}\ ([a-z]\{3\} [0-9]\{2\} [0-9]\{4\} - [0-9]\{2\}:[0-9]\{2\}:[0-9]\{2\})\)"
</code></pre>

<p>However I don't see any output for that above command,</p>

<p>I could make below command work which extracts version only by comparing versions and not looking for date in the string</p>

<pre><code>strings uboot | grep "U-Boot \([0-9]\{4\}.[0-9]\{2\}.[0-9]\{3\}\)"
</code></pre>

<p>Could someone correct/suggest what am I doing wrong in first command?<br>
Is there a better way of doing the same ?</p>