This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Search found 6 matches

by rlgraham
Fri Jan 26, 2007 3:19 pm
Forum: Scripting Help
Topic: lsearch regexp
Replies: 10
Views: 6004

Then I guess I will go with your suggestion of stepping through the segments to find all my HDR's.

Thanks so much for your time, I really appreciate it.

Ricci
by rlgraham
Fri Jan 26, 2007 3:12 pm
Forum: Scripting Help
Topic: lsearch regexp
Replies: 10
Views: 6004

I thought in the older version you could use a * instead of the -all and get the same thing, but it gives me the same error. I thought I just had the syntax wrong. Are you familar with the * matching all?
by rlgraham
Fri Jan 26, 2007 2:57 pm
Forum: Scripting Help
Topic: lsearch regexp
Replies: 10
Views: 6004

version 8.0
by rlgraham
Fri Jan 26, 2007 2:53 pm
Forum: Scripting Help
Topic: lsearch regexp
Replies: 10
Views: 6004

lsearch regexpr

I had tried that and it gives this error:

wrong # args: should be "lsearch ?mode? list pattern"
while executing
"lsearch -regexp -all $segments {^HDR}"

so that is why I was trying to get another idea of the way to use the syntax. Any other ideas?
by rlgraham
Fri Jan 26, 2007 2:35 pm
Forum: Scripting Help
Topic: lsearch regexp
Replies: 10
Views: 6004

lsearch regexpr

That is what I thought I should use, can you show me the syntax for the line I have in bold?
by rlgraham
Fri Jan 26, 2007 12:47 pm
Forum: Scripting Help
Topic: lsearch regexp
Replies: 10
Views: 6004

lsearch regexp

I am writing a tcl script and I am not familar with how to use the lsearch -regexp command to get "all" the segments in a file. Here is a peice of my code: if {$filenum > 0} { set filename [lindex $filelist 0] set fileid [open $filename r] set newfile [read $fileid] set segments [split $ne...