@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet


Comments:

<0> hi
<0> can anyone give me an example of forking or starting an app from an app, say like if you had an irc app, and you wanted it to start the external ident server seperatly from itself
<1> perldoc perlipc should get you started.



<0> thx
<2> how would I get this regex to not trigger when there are 2 pipes together (|| textToGrab)? ([\{\|].?[\s]*)([^\}\s\|;]*)
<3> give me an example string it's supposed to match on and one it's not
<2> ok, should match: this is | a string - It shouldn't match: this is || a string
<2> actually it would only match the a in that, but I hope that conveys the adjustment I want to make to it
<2> so match | a, but not || a
<3> can i have more context on the strings you're matching? sorry, it's late
<2> hehe, yeah, the regex I made basically should match the first word after a '{' or '|', but it matches the first word after '||', I need to fix that so it doesn't match '||'
<3> negative lookahead ***ertion?
<3> that'd be simplest, i think. hang on, gotta look up the syntax
<2> err, and unfortunatly this is in the java regex library, and I didn't see anything in their api about that
<3> [\{\|](?!\|)\s*(\w+)
<3> (?!x) is the negative lookahead ***ertion. test if you support that because it would be much easier if you did
<2> what is the \w?



<3> word character
<3> [a-zA-Z0-9_]
<3> hmm.. there's one problem with mine, it would match the first | on the second | :/ hang on
<3> (?:\{|(?<!\|)\|(?!\|))\s*(\w+)
<2> ok, god I hope it supports this, hehe :D been trying to get this to work for hours, and this is the last part :D
<2> errrm, yes, I don't know what in the heck that is doing...
<2> lol
<3> (?:x|y) means (x|y) but doesn't capture
<2> ok, let me try it, long as this engine supports it all the only issue I see is if that preserved my groups :D
<3> man it's been a long time, i think that's how negative lookbehind ***ertions work
<2> OMG that worked so flawlessly! Man, if I'd met you yesterday I wouldn't have written 200 lines of parsing code, lol :D thanks :D
<2> I;m going to have to figure out how that works, cuz I can really put that to use, opens up a lot more possibilities
<3> no worries :)
<2> so you kick *** :D thanks again
<3> i'm concerned that the negative lookbehind ***ertion isn't doing what i want, but if it matches on "|a" then i'm scared of nothing


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #perl
or
Go to some related logs:

#kl
audiogragger
yeblebi
jayde scott
#allnitecafe
escape from la mp3
rez worldchat
eskimos look chinese
YIAN SIN
moondance rave torrent



Home  |  disclaimer  |  contact  |  submit quotes