Re: New question on strings



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|
+------------------------------------------------------------------------+
.



Relevant Pages

  • Re: globfind
    ... love the all tcl recursive search.. ... |"The man who fights for his ideals is the man who is alive." ...
    (comp.lang.tcl)
  • Re: program can find libraries
    ... Does PATH and LIBPATH run through the directory? ... |"The man who fights for his ideals is the man who is alive." ...
    (comp.lang.tcl)
  • Re: How Fast is TCL?
    ... Try the cheap solution before implementing the hard solution. ... |"The man who fights for his ideals is the man who is alive." ...
    (comp.lang.tcl)
  • Re: Can anyone see this msg?
    ... wonder if something broke at google? ... |"The man who fights for his ideals is the man who is alive." ...
    (comp.lang.tcl)
  • Re: Tcl/Tk 2007 Conference -- Host City and Conventions
    ... Conference. ... |"The man who fights for his ideals is the man who is alive." ...
    (comp.lang.tcl)