Hey all, i have a quick (?) question about some string manipulation.
I've got a string, somewhere inside of which lies the text {RP_VAR_something}. The "something" is going to be a chunk of text with no spaces.
What i need to do is parse that main string, and copy out the {RP_VAR_something} chunk into a variable. So, for example, if i had a string like:
$str = "bob vila is comming to eat your brain you {RP_VAR_doofus}";
I would need to parse that string and get {RP_VAR_doofus} into a variable of its own.
Note i do not want to alter the initial string.
Any ideas? Any help would be greatly appreciated, thanks.
-ben