文字をフィルタリングするコードを持つと/ ".:=
どうすれば-
を許可するのですか?RegExp文字列フィルタリング - ` - '記号を許可する方法?
#include <boost/regex.hpp>
#include <boost/algorithm/string/regex.hpp>
std::string filter_args(std::string args)
{
std::cout << boost::erase_all_regex_copy(args, boost::regex("[^a-zA-Z0-9=\"/.: ]+"));
return boost::erase_all_regex_copy(args, boost::regex("[^a-zA-Z0-9=\"/.: ]+"));
}
は、メモリ位置0x003ef0a4..12のboost :: exception_detail :: clone_implで失敗します。 –
Rella
@ Kambumbus - もう一度やり直してください。 –
正しい場所に置いた場合、エスケープする必要はありません。 –