Re: how to identify string between flower braces



On Tue, 28 Nov 2006 01:23:58 GMT,
Bryan Oakley <oakley@xxxxxxxxxxxxxxxxxxxx> wrote:

set myStr "{8} {Security Configuration} {null} {}} {{9}"
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.

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
.



Relevant Pages

  • Re: Improve your sight reading
    ... but that's not the point of doing this actual exercise. ... the fretboard of each pitch on different strings. ... start with cultural relativism ...
    (rec.music.classical.guitar)
  • Re: Improve your sight reading
    ... but that's not the point of doing this actual exercise. ... You never made any connection to Lee simply mentally randomly generating ... the fretboard of each pitch on different strings. ...
    (rec.music.classical.guitar)
  • Re: Improve your sight reading
    ... but that's not the point of doing this actual exercise. ... the fretboard of each pitch on different strings. ... start with cultural relativism ...
    (rec.music.classical.guitar)
  • Re: Improve your sight reading
    ... but that's not the point of doing this actual exercise. ... You never made any connection to Lee simply mentally randomly generating ... the fretboard of each pitch on different strings. ...
    (rec.music.classical.guitar)
  • Re: OT:to Scott Daughtrey
    ... I'll give that a try and your exercise as well. ... 160mm but am much slower when I cross strings in a scale. ... Playing by moving the whole arm is ... anyone gets paid for playing like that, ...
    (rec.music.classical.guitar)