
Hello.
First... I'm sorry for my english. And second - I've got small problem.
I need use regexp. The idea is that I use 'replace', it find some text like in expression and this will be an input for function... then in function something happen and output of the function replace in text the input of the function...
For example I've got text "Solution: 5 and 4". Regular expression is "[0-9]" And the function is "add5"
int add5(int input){return input+5}
And the output of this function replace the number with number+5... And in the end text will be: "Solution: 10 and 9"
In C++ with Boost? I don't know how can I do it...
something like this....
#include <cstdlib>
#include <iostream>
#include