language: PHP (php 5.4.4)
date: 559 days 22 hours ago
link:
visibility: public
1
2
3
4
5
<?php
 
$string = "@String RT @GetThisOne: Natio";
preg_match('/@.*@([A-Za-z]*)/', $string, $matches);
echo $matches[1]; // outputs GetThisOne