Re: how to identify string between flower braces



At 2006-11-27 06:31PM, "tampabay.bucks@xxxxxxxxx" wrote:
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}.

If you *know* your data are well-defined lists:

set x "{{8} {Security Configuration} {null} {}} {{10} {Device Configuration} {yes}}"
set term "Security Configuration"
set sublist [lsearch -inline $x "*$term*"]
if {$sublist ne ""} {
set term_index [lsearch -exact $sublist $term]
set value [lindex $sublist [incr term_index]]
}

If you cannot guarantee list-ness, then
regexp "{$term}\\s+{(\[^}\]+)" $x -> value

--
Glenn Jackman
Ulterior Designer
.



Relevant Pages

  • Solaris Security Summary
    ... Administering Security on the Solaris OE ... Configuration control, facility management, and system ... Authentication: The ability to prove who you are. ...
    (comp.unix.solaris)
  • Re: DCOM calls fails - access denied
    ... That's exactly how I understood the ASP.NET security. ... But why does one configuration work but not the other? ... should get the token from IIS. ... If you set there a domain account, ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • [TOOL] LogAgent, ASCII Log Monitor
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... LogAgent tries to fill that gap by monitoring the log files on ... for network-wide log file centralization. ... # This program gets its configuration from the file config.txt, ...
    (Securiteam)
  • Re: Security for 64 bit Vista Laptop
    ... Windows Defender is enabled, as is Windows firewall. ... I'd like to address strong security. ... Understanding and Configuring User Account Control in Windows Vista. ... Internet Explorer Enhanced Security Configuration changes the browsing ...
    (microsoft.public.windows.vista.security)
  • Re: Security for 64 bit Vista Laptop
    ... Windows Defender is enabled, as is Windows firewall. ... I'd like to address strong security. ... Understanding and Configuring User Account Control in Windows Vista. ... Internet Explorer Enhanced Security Configuration changes the browsing ...
    (microsoft.public.windows.vista.security)