TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Stackoverflow, HTML by Regex, topmost answer

105 点作者 s2r2将近 15 年前

11 条评论

jgrahamc将近 15 年前
First: please don't editorialize in the title. The "Got to see this" smacks of other places I will not mention.<p>Second: this is not at all interesting. The person asks a sensible question and then gets some ridiculous replies.<p>Third: it made me remember my spat with ESR about HTML parsing: <a href="http://news.ycombinator.com/item?id=923775" rel="nofollow">http://news.ycombinator.com/item?id=923775</a> and now I feel sad.
评论 #1488192 未加载
评论 #1488663 未加载
评论 #1488665 未加载
euroclydon将近 15 年前
Some person explained that HTML is a Chomsky type 2 grammar and regular expressions are a Chomsky type 3 grammar, and provided this link: <a href="http://en.wikipedia.org/wiki/Chomsky_hierarchy" rel="nofollow">http://en.wikipedia.org/wiki/Chomsky_hierarchy</a><p>Can anyone here provide a link that makes the discussion of these typed grammars available to laymen?
评论 #1488244 未加载
评论 #1488021 未加载
friism将近 15 年前
For more discussion (of a blog-post about the answer by Atwood), see here: <a href="http://news.ycombinator.com/item?id=944673" rel="nofollow">http://news.ycombinator.com/item?id=944673</a>
man1sh将近 15 年前
I think this is pretty old and has been discussed everywhere many times. Check the date of the question/answer too.
评论 #1488039 未加载
albertzeyer将近 15 年前
Ehm, I wonder a bit, the discussions always goes that HTML is not regular. The poster though asked to just match any open tags. The language of HTML tags clearly is regular, isn't it?
评论 #1488435 未加载
评论 #1488512 未加载
评论 #1488185 未加载
jvdh将近 15 年前
&#62; HTML tags lea͠ki̧n͘g fr̶ǫm ̡yo​͟ur eye͢s̸ ̛l̕ik͏e liq​uid pain<p>Just reading that makes me wince.
arethuza将近 15 年前
I'm tempted to change our bug tracker to have a bug status of "it is too late it is too late we cannot be saved".
评论 #1488275 未加载
buro9将近 15 年前
The revisions for it are pretty cool too: <a href="http://stackoverflow.com/posts/1732454/revisions" rel="nofollow">http://stackoverflow.com/posts/1732454/revisions</a><p>Someone slightly not getting the joke edited it out on the basis of it being troll/rambling, then someone put it all back. The nice bit... the actual point is emphasised as a result.
ars将近 15 年前
What is necessary to make regex turing complete?
评论 #1488026 未加载
评论 #1487957 未加载
评论 #1487963 未加载
earcar将近 15 年前
Got to read that in a Cylon Hybrid or GLaDOS voice.
ilkhd2将近 15 年前
Anybody can suggests fiction authors who write in this style - sane text morphing into gibberish and probably back to sanity?
评论 #1487853 未加载
评论 #1488027 未加载
评论 #1487849 未加载
评论 #1487828 未加载
评论 #1488117 未加载
评论 #1488355 未加载
评论 #1488550 未加载
评论 #1488054 未加载