Members in Shoutbox
None.

Shoutbox Search
Search for:


Shoutbox Commands
/w [name] > Whisper
/r > Reply to last whisper
/me > Marks as action

Shoutbox Information
Moderators may delete any and all shouts at will.
Global Shoutbox
Please log in to shout.
Pages: < 1 « 2970 2971 2972 2973 29743539 >

[2015-3-10. : 3:12 am]
O)FaRTy1billion[MM] -- I was about to ask what part of a word is the front and what is the back
[2015-3-10. : 3:12 am]
Roy -- I guess I should have used "start" and "end" instead of "front" and "back" respectively.
[2015-3-10. : 3:11 am]
Roy -- If that makes sense.
[2015-3-10. : 3:11 am]
Roy -- So \b(roy)\b wouldn't match on "destroy" because of the word boundary in the front, nor would it match on "royal" because of the word boundary in the back. However, something like "roy-gallant" or "%roy" would match because those characters aren't considered parts of words, so it would match "roy" as a word in them.
[2015-3-10. : 3:08 am]
jjf28 -- ah
[2015-3-10. : 3:08 am]
Roy -- Anything that isn't an alphanumeric character or an underscore wouldn't be considered part of the word.
[2015-3-10. : 3:07 am]
jjf28 -- almost forgot eof
[2015-3-10. : 3:07 am]
Roy -- Or hyphen / special character / etc.
[2015-3-10. : 3:07 am]
jjf28 -- like, space tab newline?
[2015-3-10. : 3:06 am]
Roy -- Word boundary.
[2015-3-10. : 3:06 am]
O)FaRTy1billion[MM] -- \b*
[2015-3-10. : 3:06 am]
O)FaRTy1billion[MM] -- what's \n
[2015-3-10. : 3:06 am]
Roy -- \b0*10*10*\b would work fine.
[2015-3-10. : 3:05 am]
O)FaRTy1billion[MM] -- other than the {2} thing, the ^$s were part of my guess but I wasn't sure if I was reading what it said correctly
[2015-3-10. : 3:05 am]
Roy -- If you were trying to partial match, you should at least have it wrapped in word boundaries if the condition is finding a binary number with exactly two 1's.
[2015-3-10. : 3:04 am]
Roy -- Err, ^(0*1){2}0*$
[2015-3-10. : 3:03 am]
Roy -- ^0*1{2}0*$
[2015-3-10. : 3:03 am]
jjf28 -- did pen-and-paper regex in cs theory i guess, doesn't tell me terribly much about programming it tho
[2015-3-10. : 3:03 am]
O)FaRTy1billion[MM] -- Roy
Roy shouted: 001011010 would get a partial match. For shame.
Something like [^01]*0*10*10*[^01]* ? I've never tried anything like that. :P
[2015-3-10. : 3:01 am]
Roy -- I see.
[2015-3-10. : 3:01 am]
O)FaRTy1billion[MM] -- scanf reads values out of formatted text
[2015-3-10. : 3:01 am]
Roy -- I thought scanf is text formatting, not Regex.
[2015-3-10. : 2:59 am]
jjf28 -- closest i know to regex: http://www.cplusplus.com/reference/cstdio/scanf/
[2015-3-10. : 2:59 am]
Roy -- 001011010 would get a partial match. For shame.
[2015-3-10. : 2:59 am]
Moose -- Either do a lot of work with text files, or use a unix/linux shell, most shells implement some form of regex.
[2015-3-10. : 2:58 am]
Moose -- Dem0n
Dem0n shouted: how do you know that
By using it, really. The best way to learn regex is to use it.
[2015-3-10. : 2:54 am]
O)FaRTy1billion[MM] -- Dem0n
Dem0n shouted: like how does that work for when the 1's are right next to each other :O
* is 0 or more.
[2015-3-10. : 2:53 am]
Dem0n -- oh because it's zero or more 0's
[2015-3-10. : 2:53 am]
O)FaRTy1billion[MM] -- Dem0n
Dem0n shouted: how do you know that
By paying attention in class
[2015-3-10. : 2:53 am]
Dem0n -- like how does that work for when the 1's are right next to each other :O
[2015-3-10. : 2:53 am]
O)FaRTy1billion[MM] -- Mini Moose 2707
Mini Moose 2707 shouted: See, that's the kind of answer that means you're the type that needs to be told 0 or more.
I expressly ignored your qualifier. ;)
[2015-3-10. : 2:53 am]
Dem0n -- how do you know that
[2015-3-10. : 2:53 am]
Dem0n -- moose ur so smart
[2015-3-10. : 2:51 am]
Moose -- See, that's the kind of answer that means you're the type that needs to be told 0 or more.
[2015-3-10. : 2:50 am]
O)FaRTy1billion[MM] -- Can it do <0 matches?
[2015-3-10. : 2:36 am]
Moose -- * means 0 or more matches, or any number if you're not pedantic.
[2015-3-10. : 2:34 am]
Moose -- + means 1 or more
[2015-3-10. : 2:34 am]
Moose -- Indeed, you are correct, it should be * instead of +
[2015-3-10. : 2:33 am]
O)FaRTy1billion[MM] -- "0*10*10*"
[2015-3-10. : 2:32 am]
O)FaRTy1billion[MM] -- that's the one. Also moose, yours wouldn't grab like 00110000
[2015-3-10. : 2:32 am]
Moose -- jjf28
jjf28 shouted: not that i know what the regex for wildcard is
.*
[2015-3-10. : 2:31 am]
O)FaRTy1billion[MM] -- mine was. I don't remember regex
[2015-3-10. : 2:31 am]
O)FaRTy1billion[MM] -- wait, that's wrong. xD
[2015-3-10. : 2:31 am]
Moose -- 0+10+10+
[2015-3-10. : 2:31 am]
O)FaRTy1billion[MM] -- .?
[2015-3-10. : 2:31 am]
jjf28 -- not that i know what the regex for wildcard is
[2015-3-10. : 2:31 am]
jjf28 -- Dem0n
Dem0n shouted: eg. 0010100, 00110000, 110000, 11, 00100000001, etc
if it's a string do: wildcard 1 wildcard 1 wildcard
[2015-3-10. : 2:31 am]
O)FaRTy1billion[MM] -- I still need to play Mario Galaxy .. I've played like the first world
[2015-3-10. : 2:22 am]
Zoan -- Excalibur
Excalibur shouted: I have come to the conclusion that I hate living.
but why
[2015-3-10. : 2:04 am]
Fire_Kame -- she is a great mario kart wii character though
[2015-3-10. : 2:04 am]
Generalpie -- Which is the first time I've ever said that ever, including playing some games on my friend's Oculus Rift
[2015-3-10. : 2:03 am]
Generalpie -- It was so disorieting it was physically painful to play
[2015-3-10. : 2:03 am]
Generalpie -- I maybe don't remember her because I couldn't finish SMG
[2015-3-10. : 2:02 am]
Generalpie -- I hated SMG
[2015-3-10. : 2:02 am]
Fire_Kame -- Generalpie
Generalpie shouted: Generalpie Fire_Kame Explains why I didn't care much to look then :P
:-( m-monster
[2015-3-10. : 2:02 am]
Generalpie -- Generalpie
Generalpie shouted: She's from Super Mario Galaxy right?
Fire_Kame
Fire_Kame shouted: yesssss
Explains why I didn't care much to look then :P
[2015-3-10. : 2:01 am]
Excalibur -- I have come to the conclusion that I hate living.
[2015-3-10. : 2:01 am]
Dem0n -- eg. 0010100, 00110000, 110000, 11, 00100000001, etc
[2015-3-10. : 2:01 am]
Fire_Kame -- 2
[2015-3-10. : 2:00 am]
Dem0n -- What's the regex for a binary number with exactly two 1's?
[2015-3-10. : 2:00 am]
Fire_Kame -- okay maybe its more than just principle
[2015-3-10. : 2:00 am]
Dem0n -- halp pls
[2015-3-10. : 2:00 am]
Fire_Kame -- also SHE LIVES IN A FLOATING LIBRARY IN OUTER SPACE
[2015-3-10. : 2:00 am]
Fire_Kame -- not to mention the luma squeaks which is totes adorbs
[2015-3-10. : 2:00 am]
Fire_Kame -- Rosalin on he Shooting Star scooter is totes op
[2015-3-10. : 1:59 am]
Fire_Kame -- She's also my favorite character in mario kart wii...haven't unlocked her in the wii u version yet
[2015-3-10. : 1:58 am]
Fire_Kame -- And even like the non legit merch freaks the crap out of me
[2015-3-10. : 1:58 am]
Fire_Kame -- i got rosalina from a blind bag. Legit that's all I can find.
[2015-3-10. : 1:57 am]
Fire_Kame -- I think its the principal of it. diddy kong merch for days and jack for rosalina
[2015-3-10. : 1:57 am]
Fire_Kame -- yesssss

Pages: < 1 « 2970 2971 2972 2973 29743539 >


Members Online: C(a)HeK