regsub help
- From: CloudStrife <santosh.iitm2002@xxxxxxxxx>
- Date: 25 May 2007 03:09:54 -0700
The follwing doesnot work and I would like to have a work around
set line "This is a test line to demo the use of regsub"
# Replace demo with demonstrate.. here I am doing it by concatenating
'demo' and 'nstrate' ...
regsub {.*(demo).*} $line {\1nstrate} n_line
This can be done by
regsub {\sdemo\s} $line demonstrate n_line
But this is not wat i want I want a solution to make this kind of
things work ----- {\1nstrate}
Regards
Cloud
.
- Follow-Ups:
- Re: regsub help
- From: suchenwi
- Re: regsub help
- Prev by Date: Re: Tcl/Tk 8.4.15 release
- Next by Date: Re: regsub help
- Previous by thread: TK/Expect causes BEEP bacause of <CTL> chars, need to disable or filter <CTL> chars
- Next by thread: Re: regsub help
- Index(es):
Relevant Pages
|