I have some code I believe would be operate faster if using PCRE
However, I am really struggling with the syntax..
Existing code:
$result = split(" ", $dataLine, 3);
$result[1]=trim(trim($result[1]),"@");
$result[2]=trim(trim($result[2]),"@");
The objective is to :
split into 3 fields
remove any leading or trailing '@'
* remove any remaining leading / trailing white spaces
Perhaps Preg_split would be best, but I dont want to change any part of $result[3]
Any inspiration or help would be welcomed.