front pageSoftware TutorialsWebsite download using regular expressions to capture links
Website download using regular expressions to capture links

Software function: Configuration options > Capture link > Regular link

Solve the problem

  • For irregular links, you can use regular expressions to match link addresses.

how to work

  1. Matches a string containing a link.
  2. Use the grouping feature in regular expressions, that is, use parentheses to enclose the link part.

Example

In the HTML code, there is a JSON code


The home page uses regular expression matching:"url": "Link address 1" and "url": "Link address 2", and then use parentheses to enclose the link part, and the parentheses are the grouping 1 of the regular expression.

The final regular expression is:"url"[: ]+"([^"]*?)"

The link captured is:Link address 1 and Link address 2

Software application: front-end template download; development and design; SEO optimization; offline web browsing. Note: This software is not a hacking program and cannot download background data!
Disclaimer: The services are used for personal learning, research or appreciation, as well as other non-commercial or non-profit purposes, but at the same time should comply with the provisions of copyright law and other relevant laws, and must not infringe the legitimate rights of this website and related rights holders. The risks arising from the use of this site's tools have nothing to do with this software.
Copyright © 2019-2024 Rabbit Software All Rights Reserved Guangdong ICP No. 19111427-2
Tutorial Information User Manual Website topics