Regular Expressions 101

Library entries

Change all URLs to absolute

Vote

1

Regular Expression
pcre

~
(?:src|href)=[\'"](?!http|https|//)\K/?([^\'"]*)
~
gi

Description

Loading markdown...
Submitted by anonymous - a year ago