C++ Subpattern Matching

后端 未结 3 615
遥遥无期
遥遥无期 2021-01-15 01:51

can anyone please show me an example about using regex (regex.h) in C/C++ to search and/or extracting subpattern in a regex.

in javascript, it will be something like

3条回答
  •  悲&欢浪女
    2021-01-15 02:18

    Neither C nor C++ has a "regex.h". The newest version of C++ (commonly called C++0x) will have regular expression support, but it will be Boost.Regex, more or less. So you may as well just ask, "How do I use Boost.Regex?"

提交回复
热议问题