I use the tsearch2 in PostgreSQL to extract the urls from text. Everything works fine with default tools, but there's a problem with YouTube links: urls which I get from parser are all lowercased - and YT links cannot be.

I did a little research and found that there is no option that could disable lowering - all I could do is to write my own parser.

Am I right? Maybe there is any magic way to make parser case-sensitive? If no - is there anybody with appropriate parser written? If also no - do you have any advices, how to do it properly?

Thanks for help,
xaru