Is there a regex which can detect SOL domains from random strings?

Hello,

I’m looking for a regex which can detect SOL domains from random strings.
If not are there any specifications for the characters that may be used for domain names?
This problem is preventing us from integrating the sol domain into our service.

Thanks.

I don’t understand what you mean by random string. You mean name service accounts that are .sol accounts?

We want, for example, to detect the .sol domain in the Twitter timeline.
Domains ending in .sol, such as “hello.sol”, is an example of .sol domain.

All UTF-8 characters are fine, so your regex just need match the .sol

Great.
We must exclude spaces and line breaks from all utf-8 characters, right?

Yes, my bad I forgot to mention these