Re: how to identify string between flower braces



Hi

My string would be something like this.

"{{8} {Security Configuration} {null} {}} {{10} {Device Configuration}
{yes}}"

So my goal is take the value present inside the flower braces that is
immediately after {Security Configuration}.

Thanks
Arun

Bryan Oakley wrote:
Pat Thoyts wrote:
tampabay.bucks@xxxxxxxxx writes:

Hi

I have a string which would be something like below :

set myStr "{8} {Security Configuration} {null} {}} {{9}"

I would to retrieve what is present inside the flower braces after
Security Configuration which is "null" in this case. Can i do this with
a regular expression ?

Think about lists.
lindex $myStr 2


As posted, his data isn't a list. Count the braces.

.



Relevant Pages

  • Re: how to identify string between flower braces
    ... So my goal is take the value present inside the flower braces that is ... immediately after {Security Configuration}. ... set term "Security Configuration" ...
    (comp.lang.tcl)
  • Re: how to identify string between flower braces
    ... I have a string which would be something like below: ... I would to retrieve what is present inside the flower braces after ... Security Configuration which is "null" in this case. ...
    (comp.lang.tcl)
  • Re: how to identify string between flower braces
    ... I have a string which would be something like below: ... I would to retrieve what is present inside the flower braces after ... Security Configuration which is "null" in this case. ...
    (comp.lang.tcl)
  • Re: how to identify string between flower braces
    ... I have a string which would be something like below: ... I would to retrieve what is present inside the flower braces after ... Security Configuration which is "null" in this case. ...
    (comp.lang.tcl)
  • Re: how to identify string between flower braces
    ... I have a string which would be something like below: ... I would to retrieve what is present inside the flower braces after ... Security Configuration which is "null" in this case. ...
    (comp.lang.tcl)