Home > Archive > alt.os.linux > September 2002 > Is this regex possible?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Is this regex possible?
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




Sponsored Links





Free Braindumps | MCSE braindumps software forum

Copyright 2003 - 2008 examnotes.net