Url Expression

C

Curtis

You'll want to download Expresso from
http://www.ultrapico.com/Expresso.htm to help you debug your regex if
you are going to be doing a lot of this kind of thing. It is pretty
powerful and complete -- and free.

Here's one way to accomplish what you are trying to do:
http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)?(?<port>:\d+)?

Curtis
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top