| |
| |
| |
|
Page: 1 2 3
Comments:
<0> =) <1> (= <2> =) <3> string ?? <4> string -> http://Tcl.Tk/man/tcl8.5/TclCmd/string.htm <5> woomp there it iiis. <1> contents ?? <4> contents -> http://Tcl.Tk/man/tcl8.5/TclCmd/contents.htm <1> bookmark <1> live happily ever after <3> ;string map {abc 1 ab 2 a 3 1 0} 1abcaababcabababc <4> N86ers: #1332 (581 clicks) Tcl: 01321221 <6> german tcl freak present ? <7> try quakenet <7> there's alot of germans there <6> k thx
<8> mysql && tcl have to be the worst combination since chicken and waffles <7> u **** :) <7> works fine <7> or, u like chicken and waffles <8> no it blows , got to compile 1200 different things to get one lil thing to work <8> and then! dont move that file to another box because then you are really screwed <7> also worked fine for me <8> then i blame freebsd <9> is there a way of doing a (?:) <-- forward searching non-capturing regexp that does not result in that stuff turning up in match result? <9> I meant ?= <2> ... <10> np: 1392. phrek - Temple of Time (remix) [2:43] <10> yeah the tclcoder phrek :D <10> q:] <10> wonder where he is nowadays <7> he has been gone for a year now ? :) <10> more than that <10> :P <10> last we heard of him, he had a brain toumur I think <7> seen phrek <7> between xmas and new years eve 2004 <7> that'd be a sad time to p*** away really <10> yea <9> regexp -- {--([A-Za-z]+)(?: |=)((?:").+(?:")|[^ ]+)} <--- that reg exp will match --foo bar for example to foo and bar in vars but if I try to match --foo "bar" it does not remove the "" any idea how to do it? <11> regexp -> http://www.tcl.tk/man/tcl8.4/TclCmd/regexp.htm <4> row_: #1378 (13893 clicks) Tcl: 0 <9> regexp -- {--([A-Za-z]+)(?: |=)((?:").+(?:")|[^ ]+)} {--foo "bar"} <4> row_: #1379 (384 clicks) Tcl: 1 <9> see <9> matches it <9> regexp -- {--([A-Za-z]+)(?: |=)((?:").+(?:")|[^ ]+)} {--foo "bar"} match cmd value <4> row_: #1382 (552 clicks) Tcl: 1 <9> set value <4> row_: #1383 (200 clicks) Tcl: "bar" <9> regexp -- {-{1,2}([A-Za-z]+)(?: |=)((?:").+(?:")|[^ ]+)} {--foo "bar"} match cmd value <4> row_: #1384 (2105 clicks) Tcl: 1 <9> regexp -- {-{1,2}([A-Za-z]+)(?: |=)((?:").+(?:")|[^ ]+)} {-foo "bar"} match cmd value <4> row_: #1385 (561 clicks) Tcl: 1 <9> set cmd <4> row_: #1386 (5226 clicks) Tcl: foo <9> lubly <9> hmm <9> why is it capturing the " they are in (?:) which does not capture <8> grrrrr <9> ? <12> its within () <9> I see <9> but then it seems the | does not work <12> just my guess <12> lol <9> yeah but then when not using "" value is blank :/ <12> regexp -- {-{1,2}([A-Za-z]+)(?: |=)"(.*?)"|[^ ]+} {-foo "bar"} match cmd value ; puts "match=$match,value=$value" <4> th3dge: #1397 (stdout) match=-foo "bar",value=bar <12> ugh <12> regexp -- {-{1,2}([A-Za-z]+)(?: |=)"(.*?)"|[^ ]+} {-foo "bar"} match cmd value ; puts "cmd=$cmd,value=$value" <4> th3dge: #1399 (stdout) cmd=foo,value=bar <13> L] SITE READD Dero <13> [L] 200 User (Dero) readded. <13> ooops =P
<12> Dero will be happy <12> lol <9> regexp -- {-{1,2}([A-Za-z]+)(?: |=)"(.*?)"|[^ ]+} {-foo bar} match cmd value ; puts "cmd=$cmd,value=$value" <13> lol <4> row_: #1405 (stdout) cmd=,value= <9> see <12> ya <13> nah just my homeftp, just readd/del the account when needed =) <12> regexp -- {-{1,2}([A-Za-z]+)(?: |=)("(.*?)"|[^ ]+)} {-foo "bar"} match cmd value ; puts "cmd=$cmd,value=$value" <4> th3dge: #1410 (stdout) cmd=foo,value="bar" <12> well my suggest is to do a trim LOL, quick and dirty way <9> they must be in (?:) () captures <9> rofl, would not work, cause "" if it has spaces otherwise not needed <9> suppose I could but makes things a tad messy <13> what you trying to make? <9> regexp -- {-{1,2}([A-Za-z]+)(?: |=)(?:")(.*?)(?:")|([^ ]+)} {-foo "bar"} match cmd value ; puts "cmd=$cmd,value=$value" <4> row_: #1416 (stdout) cmd=foo,value=bar <13> !command --option whatever? <9> regexp -- {-{1,2}([A-Za-z]+)(?: |=)(?:")(.*?)(?:")|([^ ]+)} {-foo bar} match cmd value ; puts "cmd=$cmd,value=$value" <4> row_: #1418 (stdout) cmd=,value= <9> yep <13> i got some code for that <9> but it needs to be able to handle spaces for the search feature <9> I had it working <13> it doesnt use regexp <9> but then I bloody tweaked something <9> and lost it <9> :( <13> but it works perfect <9> it has to handle lots of cmds <13> its -- for options tho, not - <9> !cmd --value bla --value2 "bla bla" --value=sheep <9> etc <9> - is for shortcusts <9> and I convert them using a shortcuts array <13> yeah... thats easy to do <9> so for example -v goes to value not v <9> but thats not in regexp <9> :) <13> well kind of <9> easy for some ;) <13> i guess yours it a bit more complicated than mine =P <12> regexp -- {-{1,2}([A-Za-z]+)(?: |=)(("(.*?)")|([^ ]+))} {-foo "bar"} match cmd value ; puts "cmd=$cmd,value=$value" <4> th3dge: #1441 (stdout) cmd=foo,value="bar" <13> since i all my options are just one word OR comma separated, no spaces =P <9> it loops till it can't find anything filling an array of cmds and their values <12> oh crap <13> regexp -- {-{1,2}([A-Za-z]+)(?: |=)(("(.*?)")|([^ ]+))} {-foo "bar bar"} match cmd value ; puts "cmd=$cmd,value=$value" <4> [GRiMMY]: #1445 (stdout) cmd=foo,value="bar bar" <12> <- ****s at regexp <9> regexp is like a lang in itself, its not exactly easy. <4> row_: #1447 (1350 clicks) Tcl: 0 <9> lol <13> anyway cig <12> regexp -- {-{1,2}([A-Za-z]+)(?: |=)((?:").+(?:")|[^ ]+)} {-foo "bar"} match cmd value value ; puts $value <9> regexp -- {-{1,2}([A-Za-z]+)(?: |=)((?:"(.*?)")|([^ ]+))} {-foo "bar bar"} match cmd value ; puts "cmd=$cmd,value=$value" <4> row_: #1451 (stdout) cmd=foo,value="bar bar" <9> regexp -- {-{1,2}([A-Za-z]+)(?: |=)((?:").+(?:")|[^ ]+)} {-foo "bar"} match cmd value value ; puts $value <9> does not even find anything there <9> :/ <9> regexp -- {-{1,2}([A-Za-z]+)(?: |=)((?:")(.*?)(?:")|([^ ]+))} {-foo "bar bar"} match cmd value ; puts "cmd=$cmd,value=$value" <4> row_: #1455 (stdout) cmd=foo,value="bar bar" <9> ****! <8> bah anyone awake run fbsql.so? <8> i have more trouble with fbsql.so that i do with hell i dont know lol <9> there are a few that use it <12> regexp ? <11> regexp -> http://www.tcl.tk/man/tcl8.4/TclCmd/regexp.htm <4> regexp -> http://Tcl.Tk/man/tcl8.5/TclCmd/regexp.htm <9> re_syntax ? <11> re_syntax -> http://www.tcl.tk/man/tcl8.4/TclCmd/re_syntax.htm <9> ;)
Return to
#eggtcl or Go to some related
logs:
running qmail on fedora5 eclipse export failed to load Main-Class manifest rapid-cher #politics #beginner boardcast,design #computers #nhl #ubuntu #firebird
|
|