Members in Shoutbox
None.

Shoutbox Search
You may search for a phrase in the shoutbox.

Search for:


Shoutboxcommands
/w [name] Whispers.
/r Answers to whisperer.
/me Marks as action.

Shoutbox Information
Moderators may delete one or more of your shouts at any given time without notice and reason.
The Shoutbox may be good to ask for small pieces of advice, but for real questions, you still want to use our Forums
Global Shoutbox
Please log in to shout.

[2015-8-29. : 2:19 am]
poiuy_qwert -- Roy
Roy shouted: poiuy_qwert So this is actually more accurate than I first gave you credit for.
there are so many flavours/implementations of regex out there, I got a little lucky answering without asking for more info :P
[2015-8-29. : 2:11 am]
poiuy_qwert -- Roy
Roy shouted: poiuy_qwert It's still capturing the whole IP address the way he has it. The first capture group ($0) is always the entire match. Your change just makes the second capture group ($1) the same as the first.
It depends on the regex library/function he uses, since he said it was only capturing the port I assumed he was using one where there it doesn't capture the whole match
[2015-8-29. : 1:43 am]
O)FaRTy1billion[MM] -- :wob:
[2015-8-28. : 11:37 pm]
Devourer -- I'm innocent!
[2015-8-28. : 11:37 pm]
jjf28 -- it does seem to be the fate of all recent smiles :P
[2015-8-28. : 11:36 pm]
jjf28 -- <3
[2015-8-28. : 11:35 pm]
Devourer -- Sarcasm is real :<
[2015-8-28. : 11:35 pm]
jjf28 -- maybe "I love Devourer"
[2015-8-28. : 11:35 pm]
jjf28 -- perhaps, dunno what to make it though
[2015-8-28. : 11:33 pm]
Devourer -- Do you want your own smiley?
[2015-8-28. : 11:33 pm]
jjf28 -- :dev:
[2015-8-28. : 11:33 pm]
Devourer -- jjf28 pls stop cheating thx
[2015-8-28. : 11:32 pm]
Devourer -- I have brought oblivion lmao
[2015-8-28. : 11:32 pm]
Devourer -- HI KAME
[2015-8-28. : 11:24 pm]
Fire_Kame -- I CAN'T JUST WASTE MY TIME HERE
[2015-8-28. : 11:24 pm]
Fire_Kame -- I NEED TO KNOW WHO'S ONLINE
[2015-8-28. : 7:27 pm]
Mini Moose 2707 -- Fire_Kame
Fire_Kame shouted: Tell me, what was demon like before he knew the words "gay" "retarded" and "alcohol"
poop
[2015-8-28. : 5:52 pm]
Roy -- poiuy_qwert
poiuy_qwert shouted: Vrael Its because you are only capturing the port, you want something more like '([0-9]+(?:\.[0-9]+){3}(?::[0-9]+)?)'
So this is actually more accurate than I first gave you credit for.
[2015-8-28. : 4:47 pm]
Roy -- As per the docs: The string is scanned left-to-right, and matches are returned in the order found. If one or more groups are present in the pattern, return a list of groups; this will be a list of tuples if the pattern has more than one group.
[2015-8-28. : 4:44 pm]
Roy -- The fix is as simple as making the check for the port be a non-capturing group.
[2015-8-28. : 4:44 pm]
Roy -- According to a quick search, it appears re.findall will return the entire match if there are no other capture groups defined, or an array of each capture group. Since you're capturing :[0-9]+, it returns an array with just that result.
[2015-8-28. : 4:41 pm]
Roy -- Check the documentation for the module you're using; it could be that it's returning the last capture group or something.
[2015-8-28. : 4:40 pm]
Roy -- It returns an array with two matches: the IP+port, and the port.
[2015-8-28. : 4:40 pm]
Roy -- Here's the JS if you don't believe me: console.log('192.168.1.1:80'.match(/[0-9]+(?:\.[0-9]+){3}(:[0-9]+)?/));
[2015-8-28. : 4:39 pm]
Roy -- Vrael
Vrael shouted: in practice that expression only captures ":80"
Testing with the .NET implementation and JavaScript implementation, as well as on Regex Pal, it captures the IP+port.
[2015-8-28. : 4:19 pm]
Fire_Kame -- Tell me, what was demon like before he knew the words "gay" "retarded" and "alcohol"
[2015-8-28. : 4:19 pm]
Fire_Kame -- Or am origin story....
[2015-8-28. : 4:08 pm]
jushiiin -- And sorry for Demon, for not having a contact. BTW, I seceded from the clan :)
[2015-8-28. : 4:06 pm]
jushiiin -- Long time no see! I'm Zecaff..`jushin, and I was busy learning logic pro X.
[2015-8-28. : 4:05 pm]
Fire_Kame -- :wob:
[2015-8-28. : 3:05 pm]
NudeRaider -- Dem0n
Dem0n shouted: Scrubs.
https://www.youtube.com/watch?v=p_XUkT50tcY
[2015-8-28. : 2:47 pm]
Dem0n -- I saw moose's shout was at 10:30 then I saw Vrael's was at 10:17 and I was incredibly confused.
[2015-8-28. : 2:17 pm]
Vrael -- returns ":80"
[2015-8-28. : 2:17 pm]
Vrael -- >>> re.findall(r'[0-9]+(?:\.[0-9]+){3}(:[0-9]+)?', "192.168.1.1:80")
[2015-8-28. : 2:16 pm]
Vrael -- or returns rather, I'm using python's re module
[2015-8-28. : 2:16 pm]
Vrael -- in practice that expression only captures ":80"
[2015-8-28. : 1:04 pm]
Roy -- If you're working with capture groups, you should write the expression as '(\d+(?:\.\d+){3}):(\d+)', so that $0 would be the IP+Port, $1 would be just the IP, and $2 would be just the port.
[2015-8-28. : 1:00 pm]
Roy -- poiuy_qwert
poiuy_qwert shouted: Vrael Its because you are only capturing the port, you want something more like '([0-9]+(?:\.[0-9]+){3}(?::[0-9]+)?)'
It's still capturing the whole IP address the way he has it. The first capture group ($0) is always the entire match. Your change just makes the second capture group ($1) the same as the first.
[2015-8-28. : 10:27 am]
Devourer -- Fire_Kame
Fire_Kame shouted: I love devourer tho. :3
Wing Zero
Wing Zero shouted: I <3 ypu :dev:
Mini Moose 2707
Mini Moose 2707 shouted: I do, too. This is why I must help him become the best.
<3333
[2015-8-28. : 4:44 am]
poiuy_qwert -- Vrael
Vrael shouted: can anyone explain to me why this regex '[0-9]+(?:\.[0-9]+){3}(:[0-9]+)?' finds ":80" in the IP string "192.168.1.1:80" and not the whole string?
Its because you are only capturing the port, you want something more like '([0-9]+(?:\.[0-9]+){3}(?::[0-9]+)?)'
[2015-8-28. : 4:09 am]
Roy -- Vrael
Vrael shouted: can anyone explain to me why this regex '[0-9]+(?:\.[0-9]+){3}(:[0-9]+)?' finds ":80" in the IP string "192.168.1.1:80" and not the whole string?
It doesn't. Your parser is broken.
[2015-8-28. : 3:39 am]
jjf28 -- #alwaysThePessimist
[2015-8-28. : 3:38 am]
Sacrieur -- All that surveillance equipment must be hard to install.
[2015-8-28. : 3:37 am]
Sacrieur -- I'm sure they are.
[2015-8-28. : 3:30 am]
jjf28 -- they're actually in the process of updating their infrastructure at the moment; though this doesn't speak well for their redundancy
[2015-8-28. : 3:27 am]
Sacrieur -- good thing I don't use comcast
[2015-8-28. : 3:22 am]
jjf28 -- https://youtu.be/p1F7hZzIckA
[2015-8-28. : 2:45 am]
Mini Moose 2707 -- Now I'm definitely sure what slows us down. Thank you, widespread internet outage!
[2015-8-28. : 2:31 am]
Mini Moose 2707 -- Ironically, this is really cutting the load on SEN, so it's going fast lel XD
[2015-8-28. : 2:24 am]
Mini Moose 2707 -- https://downdetector.com/status/att/map get rekt, internet
[2015-8-28. : 2:09 am]
Wing Zero -- Moose fix my shouts plz
[2015-8-28. : 2:08 am]
Wing Zero -- Typing on a cell fucks up my spelling to no end
[2015-8-28. : 2:05 am]
Mini Moose 2707 -- Nah, the daemons will fix SEN once they do his bidding.
[2015-8-28. : 2:05 am]
Wing Zero -- I would have went with "To fix SEN is his real test"
[2015-8-28. : 2:03 am]
Mini Moose 2707 -- To summon them is his real test, to train them is his cause
[2015-8-28. : 2:03 am]
Wing Zero -- I <3 ypu :dev:
[2015-8-28. : 2:03 am]
Wing Zero -- Like no one ever was
[2015-8-28. : 2:03 am]
Wing Zero -- Hes gonna be the very best
[2015-8-28. : 1:26 am]
Mini Moose 2707 -- They will do his bidding and he will be unstoppable.
[2015-8-28. : 1:26 am]
Mini Moose 2707 -- I'm going to teach him how to summon daemons.
[2015-8-28. : 1:05 am]
Mini Moose 2707 -- I do, too. This is why I must help him become the best.
[2015-8-28. : 1:03 am]
Fire_Kame -- I love devourer tho. :3
[2015-8-28. : 12:53 am]
jjf28 -- https://youtu.be/m_24p1ht9v8
[2015-8-28. : 12:38 am]
Dem0n -- Scrubs.
[2015-8-28. : 12:35 am]
Mini Moose 2707 -- So basically, you were a scrub, I was a scrub, but we must transcend the scrubs we used to be.
[2015-8-28. : 12:34 am]
Mini Moose 2707 -- You did the best you could with what you had and knew at the time. There is much advice I would have given that I did not know myself when you did almost all of v6.



Members Online: Deactivated; testing around! :)