- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am trying to use regular expressions in my SGX app and in SGX v2.5 I can include the regex header file by doing "#include <regex>". However, I cannot compile the program that looks like the following:
int main() { string a = "GeeksForGeeks"; // Here b is an object of regex (regular expression) regex b("(Geek)(.*)"); // Geeks followed by any character // regex_match function matches string a against regex b if ( regex_match(a, b) ) cout << "String 'a' matches regular expression 'b' \n"; // regex_match function for matching a range in string // against regex b if ( regex_match(a.begin(), a.end(), b) ) cout << "String 'a' matches with regular expression " "'b' in the range from 0 to string end\n"; return 0; }
The compiler says regex is not defined. I wonder if regex is not being supported in SGX, yet.
Ronny
Link Copied
0 Replies
![](/skins/images/7B0AB6865064EAE32B30EC9A4E94B48A/responsive_peak/images/icon_anonymous_message.png)
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page