X
X
XenK2015-09-25 21:14:04
Regular Expressions
XenK, 2015-09-25 21:14:04

Get a link with a regular expression?

There is a code:

<body>
  <h3 class="myclass">
    <li><a href="#1">Text</a></li>
    <li><a href="#2">Text</a></li>
    <li><a href="#3">Text</a></li>
    <li><a href="#4">Text</a></li>
    <li><a href="#5">Text</a></li>
    <li><a href="#6">Text</a></li>
  </h3>
</body>

It is necessary to get all links, ie #1, #2, #4 ... Using a regular expression. How to do it right?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question