Regular Expressions 101

Community Patterns

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

Loading markdown...
Submitted by SmartCoder - 2 years ago