I need to find regex pattern for url and use regex.test() so only string like this:
http://*.margonem.pl/
so it's exactly like above string and where * must appear and can be string which only contains a-z letters without any signs.
That would be http:\/\/[a-z]+\.margonem\.pl\/:
http://a.margonem.pl/
http://foo.margonem.pl/
http://hello-world.margonem.pl/
http://abcq443435u4531.margonem.pl/
www can be a subdomain.
^http://(?:[a-z]+\.)?margonem\.pl/$or^http:\/\/(?:[a-z]+\.)?margonem\.pl\/$(depending on the usage).