K
K
kosskyiv2021-06-07 20:32:22
Regular Expressions
kosskyiv, 2021-06-07 20:32:22

Check with a regular expression that in html all tags have a link and is it absolute?

How to use regular expressions to check that all tags in html have a link and it is absolute?

<img src="/gallery/2020/6/4/14tn.jpg" >
<img/>
<img src="" >
<img src="https://site.com//gallery/2020/6/4/14tn.jpg" >
<a src='/gallery/2020/6/4/14tn.jpg' >

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Korotenko, 2021-06-07
@firedragon

Is it a task? Or do you see it that way?
I would select all elements and check them for http start

W
weranda, 2021-06-07
@weranda

For example, like this:</?.*http.*/?>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question