Latest revision |
Your text |
Line 64: |
Line 64: |
| | | |
| The article says that the Presidents Regex is now impossible to update after Trump's win over Hillary. However, if Hillary were to win in a future election, it would work again as per the rule stated above the list, wouldn't it? --[[Special:Contributions/162.158.91.35|162.158.91.35]] 09:26, 3 April 2017 (UTC) | | The article says that the Presidents Regex is now impossible to update after Trump's win over Hillary. However, if Hillary were to win in a future election, it would work again as per the rule stated above the list, wouldn't it? --[[Special:Contributions/162.158.91.35|162.158.91.35]] 09:26, 3 April 2017 (UTC) |
− |
| |
− | This isn't true either - there was already a presidential loser whose surname was Clinton (DeWitt Clinton, 1812). So presumably Hillary Clinton is likewise not considered in terms of regex eligibility. --[[Special:Contributions/172.68.132.59|172.68.132.59]] 23:05, 13 April 2017 (UTC)
| |
− |
| |
− | For the Star Wars/Star Trek golf, including the new films, I've got /m | [tn]|ba|a[sw]/. Can anyone do better? {{unsigned|Misterblue28}}
| |
− | :Including Star Wars films up to ''The Rise of Skywalker'', I get /ke|a.t.|n.*h/. --[[Special:Contributions/172.69.63.47|172.69.63.47]] 20:46, 20 May 2019 (UTC)
| |
− | Does this work for Trump v Hillary? {{unsigned ip|162.158.154.103}}
| |
− | : I was just wondering the same thing. Pretty sure it's now literally impossible, since you'd have to both match AND exclude "Clinton". [[Special:Contributions/162.158.75.88|162.158.75.88]] 13:15, 2 October 2018 (UTC)
| |
− |
| |
− | == Regex golf with transcript ==
| |
− |
| |
− | So I decided to play regex golf with the transcript (after learning regex) and it was kinda fun.
| |
− | Here's my list of lines to match:
| |
− |
| |
− | [Megan is sitting at a laptop. Cueball is standing behind her.]
| |
− |
| |
− | Megan: /m | [tn]|b/ matches Star Wars subtitles but not Star Trek.
| |
− |
| |
− | [A close-up of Megan at her laptop.]
| |
− |
| |
− | Cueball (offscreen): Uh oh...
| |
− |
| |
− | [Megan typing at her laptop.]
| |
− |
| |
− | [Cueball facepalming.]
| |
− |
| |
− | [Another closeup of Megan at her laptop.]
| |
− |
| |
− | Cueball: Now you have infinite problems.
| |
− |
| |
− |
| |
− | Here's my list of lines not to match:
| |
− |
| |
− | Regex golf:
| |
− |
| |
− | Megan: You try to match one group but not the other.
| |
− |
| |
− | Cueball: Cool.
| |
− |
| |
− | Meta-regex golf:
| |
− |
| |
− | Megan: So I wrote a program that plays regex golf with arbitrary lists...
| |
− |
| |
− | Meta-meta-regex golf:
| |
− |
| |
− | Megan: ...But I lost my code, so I'm grepping for files that look like regex golf solvers.
| |
− |
| |
− | ...And beyond:
| |
− |
| |
− | Megan: Really, this is all /(meta-)*regex golf/.
| |
− |
| |
− | Megan: No, I had those already.
| |
− |
| |
− | And here's my (very bad) regex.
| |
− | \[|ms|h\.
| |
− | (Hey, I learned yesterday)[[Special:Contributions/162.158.255.34|162.158.255.34]] 16:40, 17 October 2019 (UTC)
| |
− |
| |
− | Wanted to drop this hairball from earlier:
| |
− | \/\/([^\n]|\\\n?)*$(?<!\\$)|\/\*(([^\/*]|\*(?!\/))*)\*\/
| |
− | {{User:PoolloverNathan/Signature}} 17:29, 4 November 2022 (UTC)
| |