Editing Talk:208: Regular Expressions

Jump to: navigation, search
Ambox notice.png Please sign your posts with ~~~~

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 6: Line 6:
 
I don't think a regex can isolate an address, it has so many forms that it can not be considered regular language. This discussion comes to similar conclusions: http://stackoverflow.com/questions/9397485/regex-street-address-match [[Special:Contributions/108.162.246.117|108.162.246.117]] 05:41, 1 November 2013 (UTC)
 
I don't think a regex can isolate an address, it has so many forms that it can not be considered regular language. This discussion comes to similar conclusions: http://stackoverflow.com/questions/9397485/regex-street-address-match [[Special:Contributions/108.162.246.117|108.162.246.117]] 05:41, 1 November 2013 (UTC)
 
:It's an EMAIL address they're trying to match.  Not quite obvious if you're not already thinking emails.  At the same time, you COULD most likely catch a lot of the most common street address types, like 1234 Name Rd/St/Ave/etc. [[Special:Contributions/173.245.56.189|173.245.56.189]] 00:52, 30 January 2015 (UTC)
 
:It's an EMAIL address they're trying to match.  Not quite obvious if you're not already thinking emails.  At the same time, you COULD most likely catch a lot of the most common street address types, like 1234 Name Rd/St/Ave/etc. [[Special:Contributions/173.245.56.189|173.245.56.189]] 00:52, 30 January 2015 (UTC)
::No. "But to find them we'd need to search through 200MB of emails looking for something formatted like an address!" To '''find''' someone you need a physical address, not an email address. --[[Special:Contributions/197.234.242.240|197.234.242.240]] 14:48, 30 January 2015 (UTC)
 
 
The explanation misses the main point of the comic: a regex expert is so efficient he can solve a hard problem in a split second. Assuming, for instance, he jumped from 2 m high and he can type while he is less than 50 cm from the keyboard, he would have about .15 second to type. There's no way he could enter a long program implementing a complex algorithm but, according to Randall, this is sufficient to enter a compact regex that solves the problem.
 
In the title text, he is swinging back like a pendulum and using his new split-second typing opportunity to fix a bug in his initial regex. Zetfr 09:55, 20 May 2015 (UTC)
 
 
It's kinda funny that people are taking this so seriously when the comic itself (and the fact that it's in a comic) establishes this as a fantastical scenario. -Pennpenn [[Special:Contributions/108.162.250.162|108.162.250.162]] 06:47, 30 June 2015 (UTC)
 
 
This is probably how they wrote Encyclopedia Brown. --[[Special:Contributions/173.245.52.116|173.245.52.116]] 20:18, 26 November 2016 (UTC)
 

Please note that all contributions to explain xkcd may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see explain xkcd:Copyrights for details). Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel | Editing help (opens in new window)