Regex tester
Pattern
Input
www.sub.sub.dom-_ain.com/folder/sd?p1=v1
Options
Replacement
Click the context tab to see replacements.
1 match found in about 0 milliseconds.
IndexPositionMatched String$1$2$3${domain}
00www.sub.sub.dom-_ain.com/empty stringwww.sub.sub.dom-_ain.com/sub.sub.dom-_ain.com
www.sub.sub.dom-_ain.com/folder/sd?p1=v1
  1. empty string
  2. www.
  3. sub.sub.dom-_ain.com/
  4. sub.sub.dom-_ain.com
  5. folder/sd?p1=v1