I have a str that sometimes have numeric value attached.
I need to remove anything past myString including space and all. myString could have variable length, so i can't really count chars and clean the rest. Tried
$myString = preg_replace('/\.([0-9]*)$/', '', $myString);