67886163/4082052>This SO question</a> was interesting and had various approaches to solve it. Here's a sample example to explain the problem to be solved:<pre class=language-ruby data-lang=ruby style=background-color:#f5f5f5;color:#1f1f1f;><code class=language-ruby data-lang=ruby><span>$ cat ip.txt
</span><span>caller_number=</span><span style=color:#b3933a;>034082394234324</span><span>, clear_number=</span><span style=color:#b3933a;>33335345435</span><span>,  direction=</span><span style=color:#b3933a;>1</