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.

\"Reblog

2 thoughts on “Finding all numbers that are bigger than 1 in vim”

  1. All I can say is continue to keep it up. This weblog is so necessary inside a time when anyone just really wants to speak about how numerous individuals someones cheated on their wife with. I mean, thanks for bringing intelligence back towards the internet, its been sorely missed. Fantastic stuff. Please keep it coming!

  2. All I can say is continue to keep it up. This webpage is really needed inside a time when everybody just wants to talk about how numerous people someones cheated on their wife with. I mean, thanks for bringing intelligence back towards the internet, its been sorely missed. Good things. Please continue to keep it coming!

This site uses Akismet to reduce spam. Learn how your comment data is processed.