News for hackers. Stuff that matters.
Re:Summoning Cthulhu by Parsing HTML with Regular Expression... by pwdisswordfish9 on Saturday April 16, 2022 @05:41AM (#31051028)
That requires you to have the entire string in memory, so it’s still Ω(n). Regular languages can be recognized using O(1) space and a single reading pointer into the string, without even storing it whole; you can process it in a streaming manner.

There are no comments on this comment yet.