I need to match the "Health" in the following line. I have more lines that I need to match they all follow the same pattern but of course the links change.
I need to match the "Health" in the following line. I have more lines that I need to match they all follow the same pattern but of course the links change.
Thanks for the advice. I have another question related to this.
After using the regex and preg_match_all it matches the strings I need but also some that I don't want.
I am trying to scrape category listings from a site. All the categories are listed between <UL></UL> tags I only want to match the lines inside the <UL> tags. Is this possible?
Thanks for the advice. I have another question related to this.
After using the regex and preg_match_all it matches the strings I need but also some that I don't want.
I am trying to scrape category listings from a site. All the categories are listed between <UL></UL> tags I only want to match the lines inside the <UL> tags. Is this possible?
Code:
/<ul>([^<]+)/m
all this can't help you if don't try to understand how regex work.