Regular Expressions 101

Library entries

Long url extractor

Vote

0

Regular Expression
python

"
(?i)\b((?:https?://|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}/)(?:[^\s($)<>]+|\(([^\s()<>]+|(\([^\s( )<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s($r)<>]+\)))*\)|[^\s`!()\[\]{};:'\".,<>?«»“”‘’]))
"
gm

Description

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