Quantcast
Channel: CodeProject Latest postings for Regular Expressions
Viewing all articles
Browse latest Browse all 224

Detect only internal links containing the rel noopener

$
0
0
Hello,
I would like to process a regex to look for only the internal links containing the rel="noopener"
For example search for this link:
HTML
<ahref="https://www.linkinterno.it/2018/10/titolo/"target="_blank"rel="noopener"> anchor text </a>

In this case the regex should be:
HTML
href="https://www.linkinterno.it(.*?)rel="noopener"

and it should work as I checked it with the following regex test:
https://www.freeformatter.com/regex-tester.html

However, I am not looking for internal links correctly, only those with rel="noopener". How can I solve?

Thank you Wink | ;)

Viewing all articles
Browse latest Browse all 224

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>