I get the text of posts from VK and there may be links to some public or people, they need to be replaced with links. Examples: [id1 | Pasha] [durov | Pasha] [club1231 | Test] [club1231222 | Test page] and so on. They need to be replaced by (example)
<a href="https://vk.com/durov">Паша</a> I read it, googled it, but it still doesn’t work out ... I made up a regular calendar with the help of some service, it didn’t fit, then I climbed in js from VC, I found it there, but I had to change it, it's hard for me ...
(?![^&;]+;)(?!<[^<>]*)((\\(*)("+i.join("|")+"))(?![^<>]*>)(?![^&;]+;)
durov) is not assigned, or there is no middle name? - Drakonoved