Am trying to get tags that start <a has what ever in between, doesn't include a string and has an end </a> |
Regular expression help
2
Am trying to get tags that start
<a has what ever in between, doesn't include a string and has an end </a> |
my code is
preg_match_all("/<a.*(?<!name\.cfm)</a> |/", $html, $matching_data);
the ending parameter </a> | seems to grab loads of line breaks, the (?<!name\.cfm) just doesn't seem work as code grabbed my the reg expression contains name.cfm.
Any ideas?
<a has what ever in between, doesn't include a string and has an end </a> |
my code is
preg_match_all("/<a.*(?<!name\.cfm)</a> |/", $html, $matching_data);
the ending parameter </a> | seems to grab loads of line breaks, the (?<!name\.cfm) just doesn't seem work as code grabbed my the reg expression contains name.cfm.
Any ideas?
- Spencer Westwood
Next Topics on Trending Feed
-
2