I had a function that looks for special IDs in a string and i used regex, like anyone else would normally do. For some reason i have decided to make a dedicated function to parse the string and manually find the ids in it since the id pattern is known. Well, after a bit more time that I'd expect, i made the function 20x faster :D