Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Input https://www.abc.com.wi.pr.com/ https://www.abc.com/ https://www.def.com.wi.pr.com/ https://www.wt.com.wi.pr.com/
There are many URL's but we should not match with the string (wt).
https?://(www.)?(abc|def).com[^/]*/?$
Hard coding works but there are many names which is not possible,
Trying to use the regex something like this but no luck :(Please help me.https?://(www.)?(.*)(?!wt).com[^/]*/?$
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Match domain names except one
by kcott (Archbishop) on Feb 13, 2013 at 07:56 UTC | |
|
Re: Match domain names except one
by vinoth.ree (Monsignor) on Feb 13, 2013 at 08:02 UTC | |
by Anonymous Monk on Feb 13, 2013 at 08:16 UTC | |
by roboticus (Chancellor) on Feb 13, 2013 at 13:21 UTC | |
by hippo (Archbishop) on Feb 13, 2013 at 14:42 UTC | |
by Anonymous Monk on Feb 13, 2013 at 08:31 UTC | |
|
Re: Match domain names except one
by Anonymous Monk on Feb 13, 2013 at 07:57 UTC | |
|
Re: Match domain names except one
by BillKSmith (Monsignor) on Feb 13, 2013 at 14:20 UTC |