I have the following string:
"@String RT @GetThisOne: Natio"
How can I get "GetThisOne" from this string?
You can use preg_match like this:
<?php
$string = "@String RT @GetThisOne: Natio";
preg_match('/@.*@([A-Za-z]*)/', $string, $matches);
echo $matches[1]; // outputs GetThisOne
Here, the pattern is the folowing: find an numeric string after the second @.
Ideone example.
@and:? What have you try so far ? What doesn't work ?