:%s/pete//gn In the above example we are looking for the number of matches for the word “pete”.
Popular Posts
- PHP: Remove Values from Array 14 comment(s)
- Vim: Search and Replace, Insert new line 10 comment(s)
- PHP: Get First Index in Associative Array 7 comment(s)
- PHP: Swap Variables One Liner 5 comment(s)
- PHP: XOR swap 3 comment(s)
- PHP monitor server log 2 comment(s)
- MySQL: Dump DB with todays date in filename 0 comment(s)
- mysql: dump database without locking tables 0 comment(s)
-
Recent Posts
Recent Comments