Re: how to identify string between flower braces
- From: Bryan Oakley <oakley@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 28 Nov 2006 01:23:58 GMT
Russell Trleleaven wrote:
tampabay.bucks@xxxxxxxxx wrote:
Hiset result [ lindex [ string map { \{\{ \{ \}\} \} } $myStr ] 2 ]
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 ?
Thanks
Arun
Bad example. You should never use lindex or any other list command on strings. The above may work for the above very specific case, but it can break in so many ways for so many forms of real world data.
.
- Follow-Ups:
- Re: how to identify string between flower braces
- From: Fredderic
- Re: how to identify string between flower braces
- References:
- how to identify string between flower braces
- From: tampabay . bucks
- Re: how to identify string between flower braces
- From: Russell Trleleaven
- how to identify string between flower braces
- Prev by Date: Re: how to identify string between flower braces
- Next by Date: Re: ANNOUNCE: TkTreeCtrl 2.2
- Previous by thread: Re: how to identify string between flower braces
- Next by thread: Re: how to identify string between flower braces
- Index(es):
Relevant Pages
|