mirror of
https://github.com/libretro/cpp-cheat.git
synced 2025-04-12 16:23:08 +00:00
19 lines
335 B
C++
19 lines
335 B
C++
/*
|
|
# regex
|
|
|
|
Finally they are supported!
|
|
|
|
Many types are supported: Javascript, grep, awk, ...
|
|
|
|
It is probably saner and more powerful to stick to Javascript regexes.
|
|
*/
|
|
|
|
#include "common.hpp"
|
|
|
|
int main() {
|
|
#if __cplusplus >= 201103L
|
|
// Js has `[:d:]` equivalent POSIX `[:digit:]`.
|
|
std::regex r("a.(c|d)");
|
|
#endif
|
|
}
|