4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
15 #ifdef LYX_USE_STD_REGEX
17 // <regex> in gcc is unusable in versions less than 4.9.0
18 // see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53631
21 # include <boost/regex.hpp>
27 using LR_NS::regex_match;
28 using LR_NS::regex_replace;
29 using LR_NS::regex_search;
30 using LR_NS::sregex_iterator;
32 using LR_NS::basic_regex;
33 using LR_NS::regex_error;
34 using LR_NS::match_results;
36 namespace regex_constants
38 using namespace LR_NS::regex_constants;
39 using LR_NS::regex_constants::match_flag_type;
40 } // namespace regex_constants
46 #ifdef LYX_USE_STD_REGEX
47 // Match Begin and End of String when using ECMAScript (default std::regex)
51 // Match Begin and End of String when using Perl RE (default boost::regex)
52 #define REGEX_BOS "\\`"
53 #define REGEX_EOS "\\'"