#ruby-lang - Mon 5 Mar 2007 between 00:46 and 01:12

NY Lost Funds



blinkKernel::WTF#... actually
teferiKernel.wtf!
LoganCapaldoI imagine golden showers have the make you more awake property without having the clean property
teferiI'm going to say that again.
Kernel.wtf!
Fullmoonraise WTFError and exit(ROOM)
blinkpstickne: stop that.
Aria.
AriaBlink.
blinks/^B/b/
manveruregex question...
i want to match 'foo \' bar' and get everything from ' to ' including the \'
blink/./
LoganCapaldomanveru: regex answer, its a pain in the ass but doable
blink:P
manveru"didel 'foo \' bar' didum" =~ /magic/ #=> 'foo \' bar'
:P
i know
but i forgot the right combination of \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' s
tpopewhat about \\'
manveruwell
usually /'.*?'/ would work
blink/\'(.+?[^\\])\'/
manveruoh
tpopeas an aside, I always thought escaping ' with another ' was best for '' strings anyways
blinkheeee
LoganCapaldomanveru, i wrote this one for double quotes (not singles) and I think it handles more escapes (\n, etc.) %r{"(?:(?:\\\\|\\"|\\n|\\r|[^\\"][^\\"])*[^\\"]?)*"}
manveru!
tpopesaying "single quote strings don't have backslash escape sequences, except for these backslash escape sequences" is just weird
manveruya crazy!
well, in my case i'm having only single quotes
LoganCapaldoblink was probably saner reaching for the non greedy match :)
manveru:)
let's see
blinkLoganCapaldo: yes :P
rellik_is 'if (a="apple") print a end' not allowed in ruby? I'm getting an error on assignment in a conditional
LoganCapaldobut mine will work for regexp engine without non greedy matches :)
actionblink nods.
blinknods.
rueA warning
LoganCapaldoits not an error its a warning

Page: 1 8 15 22 29 36 43 50 57 64 71 78 85 

IrcArchive

NY Lost Funds