What is the preferred method to search for a string and then copy only part of the string? For instance. I want to search for a string called:
"@foobar@"
I only want to copy the "foobar" part.

Thanks!
Flight