Guest User

Vim regular expression to remove all but last two digits of number

a guest
Feb 27th, 2012
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. 23456789
  2.  
  3. 1,$s/(d)(ddd)(dd)*>/3g
  4.  
  5. 1,$s/(d)(ddd)(dd+)>/3g
  6.  
  7. 1,$s/(d)(ddd)(%(dd)*)>/3/g
  8.  
  9. 2345678
  10.  
  11. %s/(d)(ddd)((dd)*)>/3g
Add Comment
Please, Sign In to add comment