S
sam
Hi,
The following multiple lines declaration failed.
How can I declare it in C/C++ syntax?
string regex_parser =
"(go)\ +on\ +\$(\S+) // keyword (1) ext_if (2)
\ +from\ +\$(\S+) // int_net (3)
\ +to\ +\$(\S+) // dest(any) (4)
\ +->\ +\(\$(\S+)\)$";
the error is:
myparser.cpp:9: error: missing terminating " character
myparser.cpp:10: error: stray '\' in program
myparser.cpp:10: error: stray '\' in program
....
where line #9 is "(go)\ +on\ +\$(\S+)"
Thanks
Sam
The following multiple lines declaration failed.
How can I declare it in C/C++ syntax?
string regex_parser =
"(go)\ +on\ +\$(\S+) // keyword (1) ext_if (2)
\ +from\ +\$(\S+) // int_net (3)
\ +to\ +\$(\S+) // dest(any) (4)
\ +->\ +\(\$(\S+)\)$";
the error is:
myparser.cpp:9: error: missing terminating " character
myparser.cpp:10: error: stray '\' in program
myparser.cpp:10: error: stray '\' in program
....
where line #9 is "(go)\ +on\ +\$(\S+)"
Thanks
Sam