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

前端 未结 9 795
梦毁少年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 10:50

    The standard ISO/IEC 14882:2011 Programming Language C++ describes a regex class as part of C++'s library, which is heavily influenced by the mature Boost library.

    Curiously, as of January 2013, compilers' compliance with this standard is still spotty, e.g. the GNU compiler suite's popular C++ compiler does not support/comply with this part of the standard.

    For that reason, it's best to use Boost at this point in time until compiler support reaches compliance.

提交回复
热议问题