Found the right regex. Next is the elegant way of doing it.
Merge branch 'bbcode-url-parsing' of github.com:Zemke/cwt into bbcode-url-parsing