Preprocess chat input text, and if there is ``` Perl /(?!\[url\]\s*)(https?:\/\/)?(?:[a-z0-9-]+\.)[a-z0-9-]+(?:\/\S+)?/ ``` in it, put `[url][/url]` around it.
Preprocess chat input text, and if there is
/(?!\[url\]\s*)(https?:\/\/)?(?:[a-z0-9-]+\.)[a-z0-9-]+(?:\/\S+)?/in it, put
[url][/url]around it.