I'm trying to fetch a persons body height from IMDb but the line for it contains a # which indicate a comment in PHP (for example # The comment as follows). Here is how it looks like from IMDb's source code:
<h4 class="inline">Height:</h4>
5' 7" (1.70 m)
Here is my attempted regular expression:
<h4 class="inline">Height:</h4>\n([0-9' &#;(.)m]+)
What should I do to prevent it to comment the rest of the regular expression after the # character?
Thanks in advance!
EDIT
Here is the result from adding \ to the regular expression:
