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


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.

solved How to write Regexp for checking parts of url?