<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Factors on Amit Agarwal Linux Blog</title>
    <link>/tags/factors/</link>
    <description>Recent content in Factors on Amit Agarwal Linux Blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Thu, 24 Dec 2009 07:37:08 +0000</lastBuildDate>
    
	<atom:link href="/tags/factors/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>Finding all numbers that are bigger than 1 in vim</title>
      <link>/2009/12/24/finding-all-numbers-that-are-bigger-than-1-in-vim/</link>
      <pubDate>Thu, 24 Dec 2009 07:37:08 +0000</pubDate>
      
      <guid>/2009/12/24/finding-all-numbers-that-are-bigger-than-1-in-vim/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;/^([2-9]d*|1d+)&lt;br&gt;
If we have a csv like structure&lt;/p&gt;
&lt;p&gt;The trick here is simple, lets look at the regex from the begining:&lt;/p&gt;
&lt;p&gt;^ – start from the begining&lt;br&gt;
() – start and end of block&lt;br&gt;
[] – digits within this. So we are looking from 2 to 9 to exclude the numbers begining with 1&lt;br&gt;
d – search for digits&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;– search for one or more&lt;br&gt;
| – or operation&lt;br&gt;
1 – search for numbers begining with 1&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;– containing atleast one occurence or more.&amp;lt;h6 class=&amp;quot;zemanta-related-title&amp;quot;&amp;gt;Related articles by Zemanta&lt;/h6&gt; &amp;lt;ul class=&amp;quot;zemanta-article-ul&amp;quot;&amp;gt; &amp;lt;li class=&amp;quot;zemanta-article-ul-li&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;http://sparksspace.blogspot.com/2009/10/adding-leading-zeros-in-excel.html&amp;quot;&amp;gt;Adding Leading Zeros in Excel&lt;/a&gt; (sparksspace.blogspot.com)&lt;/li&gt; &amp;lt;li class=&amp;quot;zemanta-article-ul-li&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;http://blog.creativethink.com/2009/11/the-best-thing-about-2010.html&amp;quot;&amp;gt;The Best Thing About &amp;amp;#8221;2010&amp;amp;#8221;&lt;/a&gt; (creativethink.com)&lt;/li&gt; &amp;lt;li class=&amp;quot;zemanta-article-ul-li&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;http://www.revenews.com/jackbusch/google-goggles-the-world-is-your-hyperlink/&amp;quot;&amp;gt;Google Goggles: The World is Your Hyperlink&lt;/a&gt; (revenews.com)&lt;/li&gt; &lt;/ul&gt; &amp;lt;div class=&amp;quot;zemanta-pixie&amp;quot;&amp;gt;&amp;lt;a class=&amp;quot;zemanta-pixie-a&amp;quot; href=&amp;quot;http://reblog.zemanta.com/zemified/e022d83e-669e-4cad-894c-cdab54a1946c/&amp;quot; title=&amp;quot;Reblog this post [with Zemanta]&amp;quot;&amp;gt;&amp;lt;img class=&amp;quot;zemanta-pixie-img&amp;quot; src=&amp;quot;http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/reblog_e34.png&amp;quot; alt=&amp;quot;Reblog this post [with Zemanta]&amp;quot; /&amp;gt;&lt;/a&gt;&amp;lt;span class=&amp;quot;zem-script more-related more-info pretty-attribution paragraph-reblog&amp;quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;</description>
    </item>
    
  </channel>
</rss>
