\s?/m', '', $text); $text = (string) preg_replace('/^[-*+]\s+/m', '', $text); $text = (string) preg_replace('/^\d+[.)]\s+/m', '', $text); $text = (string) preg_replace('/\*\*(.+?)\*\*/s', '$1', $text); $text = (string) preg_replace('/__(.+?)__/s', '$1', $text); $text = (string) preg_replace('/(?