Regular Expressions 101

Community Patterns

1...34567...132

Extract Rapidgator Links from a HTML web page (Works for rg.to and rapidgator.net)

2

Regular Expression
PCRE2 (PHP >=7.3)

/
https:\/\/r(?:g|apidgator)\.(?:to|net)\/file.*?(?:(?=">)|(?:html|htm|rar|zip|txt)(?=" ))
/
gm

Description

  • Click "open regex in editor" to open regex.
  • Open a webpage containing Rapidgator Links - Either rg.to or rapidgator.net
  • Right-click anywhere on the page and select "view page source"
  • Copy the HTML markup containing the Rapidgator links to regex101.com
  • Paste the HTML markup and set mode to match
  • Locate the match information section and click on the Export icon
  • Select "Plain Text" from the popup modal side menu
  • Copy your Rapidgator Links without stress.

If it's helpful to you, don't forget to upvote so that others can benefit as well.

Submitted by SmartCoder - 2 years ago