As some of you know i have been working on a pseudo-scripting mini-language, sofar its going prety good, thanks for asking (user defined functions, calling of language functions and user defined functions, math, dynamic reloading of the script and functions in it, as well as a bunch of other stuff is working well). However im looking for a GOOD way to simply replace pieces of strings. No im not a n00b who couldnt do it, but my method would be bloated, slow, and wasteful and im trying to keep this little project as neat and beautiful and simple as possible. Now for the infamous code tags DUN DUUUNNN DUUUUUNNNNN!!!
Thats what im looking for. Dont tell me i have to just loop around looking, i KNOW there is always a simple elegant way to do things. I just havent had the inspiration as to what it is =P. Thanks for all the help guys, i know im kinda thick headed sometimes when i get a weird way of how to do it in my head, but ur always there to offer me words of "wtf is that nutball up to THIS time?!" =PCode:... std::string myvar = "asdf"; std::string line_im_processing = "i like to use $myvar in conversations about $myvar with my friends."; <MAGIC CODE TO REPLACE ALL OCCOURANCES OF $VARNAME WITH ITS AUCTUAL VALUE>