SHARE
TWEET

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

a guest Feb 27th, 2012 15 Never
  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
RAW Paste Data
Top