Does C or C++ have a standard regex library?

前端 未结 9 756
梦毁少年i
梦毁少年i 2021-02-05 10:36

Does it? If yes, where can I get the documentation for it... if not, then which would be the best alternative?

相关标签:
9条回答
  • 2021-02-05 11:05

    +1 for PCRE - Perl Compatible Regular Expression , I remembered using Mircosoft's GRETA as well.

    0 讨论(0)
  • 2021-02-05 11:09

    Regular Expressions are part of the C++ extension TR1. Dinkumware, visual studio and others already have implemented this. See

    Quick Start for C++ TR1 Regular Expressions

    Visual C++ 2008 Feature Pack

    0 讨论(0)
  • 2021-02-05 11:10

    If by standard you mean bundled with compiler, then not. But most of the other languages that bundle regex extension use pretty standard c implementations. E.g. PCRE - Perl Compatible Regular Expression and C libraries have POSIX regex support (see man page).

    0 讨论(0)
提交回复
热议问题