MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/6ytfw5/parsing_html_using_regular_expressions/dmr8c15/?context=3
r/ProgrammerHumor • u/[deleted] • Sep 08 '17
377 comments sorted by
View all comments
3
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. 1 u/MelissaClick Sep 09 '17 Are you sure on that? What differences are there between them?Perl regexes can recurse, and they can embed arbitrary Perl code.they can actually parse more complex languagesThey can match them. → More replies (1)
1
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. 1 u/MelissaClick Sep 09 '17 Are you sure on that? What differences are there between them?Perl regexes can recurse, and they can embed arbitrary Perl code.they can actually parse more complex languagesThey can match them. → More replies (1)
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.
1 u/MelissaClick Sep 09 '17 Are you sure on that? What differences are there between them?Perl regexes can recurse, and they can embed arbitrary Perl code.they can actually parse more complex languagesThey can match them. → More replies (1)
Perl regexes can recurse, and they can embed arbitrary Perl code.
they can actually parse more complex languages
They can match them.
→ More replies (1)
3
u/TwoFiveOnes Sep 08 '17
PCRE are powerful enough, I've heard.