iPhone Developer iPhone Developer - 1 year ago 86
Javascript Question

capture first part of the url

Let's say I've following URLs.



I'm trying for a regular expression to get the following match so I can run a switch statement on it.



I've tried the following and trying other options as well.


Answer Source

arr = [


How about this solution?

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download