Lurker News

Comments (129) 40 threads

Earlier comments
samat#
This is very neat, thank you!
blauditore4 replies#
Would be nice to have a regex for parsing HTML...

grabs popcorn

arkh1 reply#
With subroutines and recursive patterns I think you could do something parsing valid HTML.

Your sanity won't be left intact tho.

geongeorgek#
Haha..careful. someone might take this seriously
quickthrower2#
There is a good comment on that answer:

> To sum up: RegEx's are misnamed. I think it's a shame, but it won't change. Compatible 'RegEx' engines are not allowed to reject non-regular languages. They therefore cannot be implemented correctly with only Finte State Machines. The powerful concepts around computational classes do not apply. Use of RegEx's does not ensure O(n) execution time. The advantages of RegEx's are terse syntax and the implied domain of character recognition. To me, this is a slow moving train wreck, impossible to look away, but with horrible consequences unfolding

bmn__1 reply#
Nope.

My First Heading

will misparse. (This is valid HTML 5.) You really need recursive regex or something equivalent in power, otherwise you will always fail.
chirss#
Well yea, it's a joke...
shawnyou#
Good tool

All comments shown.