Best string search method in Windows Forms (C++)?

Karstein

Senior member
Mar 31, 2011
392
0
71
I'm currently creating a tool using Windows Forms (C++) and wondered if you guys could give some advice on the best way to search/extract info from strings.

Basically I'm parsing a log (which is entered through an editbox and saved to a System::String^). I then want to search through the string and extract various bits and pieces, eg. it finds <name> <sometext> and I can output that in a more readable format.

I've tried using regex but it complains that the template can't handle String^s. There seem to be a bunch of search/compare methods but none that specifically relate to what I need (regex_search is ideally what I wanted to use). Any recommendations?

Thanks in advance!
 

Karstein

Senior member
Mar 31, 2011
392
0
71
How does boost::regex differ from regex in C++11? Does it support String^?
 

Karstein

Senior member
Mar 31, 2011
392
0
71
It's just a small tool so it should be fine. Thanks for the warning, though. :)