\s*(.*?)\s*using filter : HTML \(StarWriter\)/'; // Perform the regex match if (preg_match($pattern, $input_str, $matches)) { // Return the matched content return $matches[1]; } // Return null if no match is found return null; } ?>