Why search when you can replace?
Note that that could leave trailing whitespace; to get rid of that, use s/\s*\d+$// instead.
In reply to Re: regular expression
by ariels
in thread Matching lines in a file that end in numbers (was: regular expression)
by ashok
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |