Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2017-07-19 17:37
Flavor·Python

r"
(?P<url>https?://(?:(?:www|forums)\.aeva\.asn\.au/forums|forums\.aeva\.asn\.au)[^\s\"<]+)
"
mg
Open regex in editor

Description

Expression to locate AEVA Forum (http://forums.aeva.asn.au) internal links as part of a conversion process from WebWiz to phpBB

This expression is currently working in this regex-tester, including picking up relative URLs

Now excludes enclosing quotes for relative URLs

NOT picking up all relative URLs

Submitted by anonymous