[Solved] How to write Regexp for checking parts of url?

[ad_1]

Your question is very unclear. As of your comment, I understand it like that (seems to be the case, so here the same as in the comments above also as an answer):

The beginning of the string needs to be https:// followed by some text and then domain.com? If so, you can use

https:\/\/(?:.*?\.)?domain\.com.*

Here is a live example.

[ad_2]

solved How to write Regexp for checking parts of url?