Let's say I have this HTML, I cannot perform regex on it to find value (at least I think so) because it has new lines but I need to search something like name="hf" value="(.*?)"
.
HTML Response
<input type="hidden"
name="hf"
value="123">
When I try to do $response = str_replace('\r\n', $response, '');
or $response = str_replace('\n', $response, '');
$response
becomes empty string. What are my options?