Finding all numbers that are bigger than 1 in vim
/^([2-9]d*|1d+)
If we have a csv like structure
The trick here is simple, lets look at the regex from the begining:
^ – start from the begining
() – start and end of block
[] – digits within this. So we are looking from 2 to 9 to exclude the numbers begining with 1
d – search for digits
- – search for one or more
| – or operation
1 – search for numbers begining with 1
- – containing atleast one occurence or more.<h6 class="zemanta-related-title">Related articles by Zemanta <ul class="zemanta-article-ul"> <li class="zemanta-article-ul-li"><a href="http://sparksspace.blogspot.com/2009/10/adding-leading-zeros-in-excel.html">Adding Leading Zeros in Excel (sparksspace.blogspot.com) <li class="zemanta-article-ul-li"><a href="http://blog.creativethink.com/2009/11/the-best-thing-about-2010.html">The Best Thing About ”2010” (creativethink.com) <li class="zemanta-article-ul-li"><a href="http://www.revenews.com/jackbusch/google-goggles-the-world-is-your-hyperlink/">Google Goggles: The World is Your Hyperlink (revenews.com)
Related Articles:
- 2009/12/19 Chrome – Chromium on Linux (repo)
- 2009/12/19 Opens Four Google Frames At Once
- 2009/12/10 Google wave invitation available with me.
- 2009/11/25 Google wave invite available with me..
- 2009/11/25 Google wave invites available with mjmwired