You need to create a regular expression to search for the following template:
>>какие-то_числа_без_пробелов, текст and replace it with
<a href="#какие-то_числа_без_пробелов">какие-то_числа_без_пробелов</a>, текст example:
>>12344, log success <a href="#12344">12344</a>, log success These regular expressions do not go at all, or it may take bad stuff.