I have this string (for example)
Content-Disposition: attachment; filename="Eminem - Not Afraid1.3gp"
and use this pattern on preg_match()
([^.]+)\:\s([^.]+)
What I want is:
Array
(
[0] => Content-Disposition: attachment; filename="Eminem - Not Afraid1.3gp"
[1] => Content-Disposition
[2] => attachment; filename="Eminem - Not Afraid1.3gp"
)
But I get
Array
(
[0] => Content-Disposition: attachment; filename="Eminem - Not Afraid1
[1] => Content-Disposition
[2] => attachment; filename="Eminem - Not Afraid1
)
What is wrong with this pattern?