I have a string like this:
$sContent = "t('Dashboard').' '.t('Settings Test').' '.t('My Test').' '.t('Other test')";
What I need is a regular expression that get each separate t('') values like:
t('Dashboard')
t('Settings Test')
...
In PHP I used:
$sRegExp = '/t\((.*)\)/i';
preg_match_all($sRegExp, $sContent, $aResults);
I get the same result with main string:
t('Dashboard').' '.t('Settings Test').' '.t('My Test').' '.t('Other test')