| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
Comments:
<0> sili_: yea why not? <0> cfedde: edlin! copy con! <1> simcop2387: exactly. <2> lmfao <2> "SHe was detained by the sector police for practicing witchcraft!" <1> Microsoft WORD for god sake. <1> Open Office. <2> no <2> no no no <2> for god's sake, NOT microsoft word <2> Crimson Editor works. <2> UltraEdit32 v10 works, too. <1> netscape Composer <3> word pewfect
<1> Neo <4> I use 'echo'. <2> vi <1> or is it neu... I forget. <5> hello. I'm trying to build a regex that matches a tag <asdf>, then anything that's not </asdf>, then </asdf> <3> nano with a defunct $TERM <5> I'm having trouble on the "anything that's not </asdf>" part <5> any ideas? <3> Pandect: use regex and die. try a parser. <5> Supaplex, thanks :) <5> But regex would be awfully nice... <3> oh, you even said regex. I didn't even see that. :) <3> search.cpan.org for parser <3> lemmie see what module I used last <5> hmm, ok... but I'm still just looking for that "not this string" in a regex, it's got to be there! <2> Pandect: There isn't. <5> similar to [^<] but not just for a character <, for a string <5> really? :-/ <3> Template::Extract <2> Pandect: The complexity if your request is far beyond what you think it is <6> can't you use ()'s? <5> Stevie-O, haha, nice <5> mjl69evdo, I could, but think about it <5> say I have a tag <asdf>, and I want to remove everything inside it <5> right now, I'm doing <2> remove or extract? <5> s/<asdf[^>]*>[^<]*</asdf>//gi; <1> Pandect: I'd approach that kind of thing with HTML::TokeParse::Simple <5> BUT, this situation doesn't work if there's a <div></div> inside <asdf>, say <2> Pandect: A good solution would be: m#<asdf>(.*?)</asdf># <5> Stevie-O, but then, what if multiple <asdf> tags? I wasn't sure if it would be greedy by default, or not... <1> sili_: I remeber now what it's called... Nvu <2> Pandect: That's why the ? <5> for example, I wouldn't want it to remove everything between the first <asdf> and last </asdf>, if it was, say, "Hello! <asdf>Delete Me</asdf> Keep me! <asdf>Delete me as well!</asdf>" <6> or put the ()'s around tags <5> "Keep me!" should still be there... <2> Pandect: you're not paying attention <5> Stevie-O, sorry, what'd I miss? <2> m#<asdf>(.*?)</asdf># <2> note the ? <5> ok... the ? takes care of greediness? <7> cfedde: HMMMMM <2> yes. if you RTFM (or bothered to ask about stuff you didn't recognize), you'd know that ;) <6> s/(<asdf>).*?(</asdf>)/$1$2/ <5> Stevie-O, OK, sorry, i got it confused with the ? meaning optional :) <2> ? means optional as the first char <5> Stevie-O, ah, ok, my bad <5> mjl69evdo, thanks :) <2> ? after * means 'non-greedy match' <6> wasn't easy to type that on my phone... <5> Stevie-O, oops, meant to include you on that thanks too <5> mjl69evdo, haha, i ssh off of my treo sometimes, it's a pain in the *** to get the | character <7> did mysql grant syntax change in 5? <6> yeah, the alt key <2> shift backslash <8> Pandect: . up/down iirc :P <6> shift backslash on the soft keyboard, alt key on thumb keyboard <9> sili_, i dont think so; did you flush privilges?
<2> wait! <8> mjl69evdo: pfff, keyboards are for wussies <2> don't hit esc! the Virus from The Net will show up! <2> although Sandra Bullock might do so too <3> ewps <3> ouuu <8> mjl69evdo: real geeks get 5 cps on grafiti <7> uberspaced: ya, then i check the mysql.user table and all the privileges are N <6> & <9> hrm. <7> grant all privileges on databizwiki to 'databizwiki'@'localhost' identified by 'junk'; <7> err, there's a .* there <9> databizwiki.* <7> databizwiki.* <9> hmm <2> what? <9> sili_, and you're sure you flushed privileges? <9> are you on the right server? <7> absolutely <7> yes <10> you spelled privileges properly? <7> hmm <9> o_O <7> wait, i couldn't connect before. maybe i was typing the p*** wrong <9> what does mysql -u databizwiki@localhost -p give you? <7> i wasn't able to connect before, must have been typographical erroring <7> the mysql.user table still returns a bunch of "N" records though <7> i don't know what that's about <3> dark magic <9> GumbyBRAIN, got to change your evil ways... baby... before I start lovin you <11> hello... <12> no, i place to start. <11> is this the perl group <4> No. We just named it #perl because we like jewelry. <13> bruce1: this is a loose ***ortment of Perl coders <2> and we spell badly <11> just making sure... <4> Horribly. <11> i see... <9> ew73, dont be so harsh! bruce1 , join #gumbybrain; he knows everything <2> You mean horrbily <2> :) <3> horrorbilly? <11> no prob.. <4> Who's Horror Billy? <2> Horror Bruce's brother <3> that's my question <4> And is Mandy and Grim with them? <11> has anyone used html::tidy <3> ouu that would be fun <2> No, but Erwin is <2> (Irwin?) <3> uhhh errr urrr irrr uhhh huh? what? <4> bruce1: We will continue with the peanut gallery until you ask question. <9> GumbyBRAIN, html::tidy <12> Tidy to touch, rather. <9> heh <11> i see!! <2> What's a peanut gallery? <2> GumbyBRAIN: What's a peanut gallery? <12> E.g. A tool to do with the peanut gallery until you say so, you're probably right. <4> GumbyBRAIN: Ted Kennedy used HTML::Tidy once, shortly after a 14-year-old African American girl. <12> That girl in a year. <0> GumbyBRAIN: who is your lover? <12> So is your lover? <11> i'm trying to figure out how i canuse tidy to clean a string, and return the cleaned string.. <2> what's it take and return? <2> (normally) <11> i'd then like to create the DOm with he cleaned html string.. <9> GumbyBRAIN, modify your behavior! <12> the cookie-jar doesn't get your interest.. I dunno what would. It's sorta like that and your behavior. <4> http://search.cpan.org/~petdance/HTML-Tidy-1.06/lib/HTML/Tidy.pm <14> ew73's url is at http://xrl.us/oybe <11> in looking through cpan..
Return to
#perl or Go to some related
logs:
Sax2 intel 915 GM #css #gcc #debian dhpc package universe myslaxcreater + iso #css mysql delete inner join* ubuntu samba enable guest access ipt_recent jitter
|
|