Re: how to identify string between flower braces
- From: Fredderic <put_my_name_here@xxxxxxxxxxxxxxx>
- Date: Tue, 28 Nov 2006 20:57:23 +1000
On Tue, 28 Nov 2006 01:23:58 GMT,
Bryan Oakley <oakley@xxxxxxxxxxxxxxxxxxxx> wrote:
You should never use lindex or any other list command onset myStr "{8} {Security Configuration} {null} {}} {{9}"
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.
You can go a fair way to cleaning that up with something along the
lines of:
regexp -all -inline {{.*?}} $junk
Though you'll be left with extra {}'s around each item. You can
probably use one of the funky regexp expression forms to strip them off
too, or you could just use [string range 1 end-1] as you process the
item(s).
Mind you, this is all an exercise in curiosity only, since the OP has
indicated that the original example was miss-written.
Fredderic
.
- References:
- how to identify string between flower braces
- From: tampabay . bucks
- Re: how to identify string between flower braces
- From: Russell Trleleaven
- Re: how to identify string between flower braces
- From: Bryan Oakley
- how to identify string between flower braces
- Prev by Date: Re: how to universally source files
- Next by Date: zar oyunu
- Previous by thread: Re: how to identify string between flower braces
- Next by thread: Is there a way to make 'wish' read standard input?
- Index(es):
Relevant Pages
|