My example is, $f : \mathbb{R}^+ \to \mathbb{R}$ defined by: $$f(x) = \begin{cases} x, &\text{if }0 \leq x < 1 \\ \tfrac{1}{x}, &\text{if }x \geq 1. \end{cases}$$ Even though $f(0)=0$ but $f([5,6]) \neq 1$. But $\mathbb{R}^+$ is a Hausdorff space but this continuous function fails to separate the point $0$ and $[5,6]$.
Is this correct ?
A simple example of a Hausdorff space which is not (completely) regular is the K-topology on $\mathbb{R}$ using the set $K = \{ \frac 1n : n \geq 1 \}$. This is formed by taking as a base all open sets in the usual topology, as well as all sets of the form $(a,b) \setminus K$.
Since it is a finer topology, it is Hausdorff.
It is not too difficult to show that $K$ is a closed set in the new topology, and there are no disjoint open set $U,V$ with $0 \in U$ and $K \subseteq V$.
(Even finer grained examples of Hausdorff but not (completely) regular spaces may be found in the answers to my question here. It is easy to show that every regular (Hausdorff) space satisfies the criteria I was asking about.)