Re: New question on strings
- From: "Gerald W. Lester" <Gerald.Lester@xxxxxxx>
- Date: Thu, 28 Feb 2008 08:51:03 -0600
mark wrote:
mark <jjoyce1973@xxxxxxxxxxx> dixit:
My string is
BSBSBSBSBSBSBSBS\Important_info.ars BSBSBSBSBSBS
Retrieve the info between .ars and the first backslah to the left.
Any ideas?
% set str {BSBSBSBSBSBSBSBS\Important_info.ars BSBSBSBSBSBS}
% set first [string first \\ $str]
% set end [string first .ars $str]
% set target [string range $str [incr $first] [incr $end -1]]
--
+--------------------------------+---------------------------------------+
| Gerald W. Lester |
|"The man who fights for his ideals is the man who is alive." - Cervantes|
+------------------------------------------------------------------------+
.
- Follow-Ups:
- Re: New question on strings
- From: tom.rmadilo
- Re: New question on strings
- References:
- New question on strings
- From: mark
- Re: New question on strings
- From: mark
- New question on strings
- Prev by Date: Re: Freewrap: problem when building under Windows
- Next by Date: serial communication with tcl
- Previous by thread: Re: New question on strings
- Next by thread: Re: New question on strings
- Index(es):
Relevant Pages
|