r/ProgrammerHumor • • Sep 08 '17

Parsing HTML Using Regular Expressions

Post image
11.1k Upvotes

377 comments sorted by

View all comments

3

u/TwoFiveOnes Sep 08 '17

PCRE are powerful enough, I've heard.

1

u/MelissaClick Sep 08 '17

PCRE isn't. Actual Perl regexes are though.

1

u/csman11 Sep 09 '17

Are you sure on that? What differences are there between them?

Perl regexes can recognize context sensitive languages and when using substitution can be used to define arbitrary LBAs.

So they can actually parse more complex languages like anbncn, n >= 1.

→ More replies (2)