EDIT: FIXED Hi I need to convert following expression to preg_match ereg("<(/?[[:alpha:]]*)[[:space:]]*([^>]*)>",$str,$reg) PHP: I tried the following code and it gives me "Warning: preg_match() [function.preg-match]: Unknown modifier '?' in " error. preg_match("/<(/?[[:alpha:]]*)[[:space:]]*([^>]*)>/",$str,$reg) PHP: Any help?
Never mind Fixed that. Correct code preg_match("/<(\/\?[[:alpha:]]*)[[:space:]]*([^>]*)>/",$str,$reg) PHP: