Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

replace string..

Status
Not open for further replies.

AnilKumar

Programmer
Dec 5, 2000
26
0
0
IN
I want to remove all "?" in my string ..is there any function to do this..I tried to use regsub but it is not working..
i have a string like "?anil"
i want to remove ?.
thx for help..
Anil.
 
Escape question mark with a backslash. See example below.

set aaa "?an?il?"
regsub -all {\?} $aaa "" bbb

bbb should contain "anil"


Jeff.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top