I have the following regex that I have successfully used:
preg_match_all('/(\d+)\n(\w.*)\n(\d{3}\.\d{3}\.\d{2})\n(\d.*)\n(\d.*)/', $text, $matches)
However, I just discovered that if the text matching the part (\w.*) Starts with an external character such as Ä , then it does not match anything.
Can someone help me with what should have the correct pattern instead of (\w.*) To match a line starting with any character?
Many thanks
source share