Regular Expressions 101

Community Patterns

Extract any link or endpoint

1

Regular Expression
Java 8

"
(?<=(?:href|action|src)=[\"'])[^\"']+
"
gm

Description

Extract any link or endpoint from 1- HTML page source 2- HTTP responses 3- JS files

Feel free to contact me on Telegram https://t.me/c4ir0 if you:

  • are interested in discussing this regex
  • need assistance with any regex-related queries
  • want to challenge me (I'm enthusiastic about this part)
Submitted by Cairo - 8 months ago (Last modified 8 months ago)