I have some string with this style:
$var = "a - it is a string"; // I want this output: 'it is a string'
$var = "m - it is second string"; // I want this output: 'it is second string'
So here is my pattern:
[single character in the first of string]<space>-<space>{anything} // I want just {anything}
How can I do that in PHP REGEX?
Here is my try (altought does not work and I'm sure it is really far of what I want)
preg_replace("/^\w\s+-\s+/","",$str);
Edit:
It should be noted that I use Persian characters in reality. Also here is a example:
$var = 'ی - این یک متن تست است';