I need to find a method in c++ to split a c++ string based on the occurence of a regular expression.
In case that's confusing;
My goal is to set up a vector <string> to recieve the value. the value is returned based on a regular expression. If the string were (quotes for clarity) "hello, world" this supposed method would return {"hello,","world"} if the regular expression given were a space.
I've tried calling this supposed method (split) from the libraries string and regex.h by sayingor something of that nature.Code:string str=txt.split(",")
anyone know of such a method?



LinkBack URL
About LinkBacks



CornedBee