I have for example these "a" tags:
<a href="http://www.domain.com/products/foo">Foo product</a>
<a href="/articles/bar">Bar article</a>
I use this pattern:
/<a\s[^>]*href\s*=\s*(\"??)([^\" >]*?)\\1[^>]*>(.*)<\/a>/siU
This expression returns to me both tags (foo product and bar article). Can you help me please how to make an expression that returns only tag "bar article"?
Thank you.
EDIT:
@Avinash Raj thank you for the tip.
These result of the pattern works for me:
/^.*<a\s[^>]*href="http:\/\/.*$(*SKIP)(*F)|<a\s[^>]*href\s*=\s*(\"??)([^\" >]*?)\1[^>]*>(.*?)<\/a>/miU