from Hacker News

Improving the efficiency of your regular expressions

by EntICOnc on 11/20/23, 8:39 AM with 3 comments

  • by dehrmann on 11/22/23, 12:08 AM

    > Using RE2::FullMatch() with leading or trailing .* is an antipattern. Instead, change it to RE2::PartialMatch() and remove the .*.

    This is something the compiler should do for me.