| Trooper 2002-09-29, 6:30 pm |
| I'm fairly new to Linux and am taking an introductory course, and this
is one of the problems I am faced with. In vi...
Replace all instances of the following words: this, these, those
with: This, These, Those
Assuming the extended regular expressions are on, this finds all three
words: /th[ieo]se?/g
However, I am consfused about how I'm supposed to replace the
first letter with a capital T. I know the & symbol can be used as
whatever was matched, but still... how do you replace the first letter?
Any help would be greatly appreciated.
Thanks,
Trooper
|