I am currently trying to copy a subset of regex (also known as regular expressions) library and its dependencies so I can bring it to school to work with. I could be using Microsoft's regular expressions from the C++11 standard library, but my school's computers do not support the C++11 library.
Anyways, to make this possible, I have compiled the bcp tool successfully and I have typed bcp boost/regex.hpp <my destination folder>
on my command prompt window.
The problem is that I get the following error:
**** exception(205): std::runtime_error: Found a closing ) with no corresponding openening parenthesis. The error occurred while parsing the regular expression fragment: "?+(([(<].*HERE>>>)?$)?".
Any kind of advice would be appreciated.
Very peculiar. The quoted code has an OPENING ( with no corresponding closing parenthesis. Try escaping the open parenthesis with a slosh \\:
"?+(([\(<].*HERE>>>)?$)?"
This would not alter the regular expression, but may help the parser.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.