The following code causes Segmentation fault (core dumped):
#include #include using namespace std; int main() { regex expr("^(