"""moveon_web URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Add an import:  from blog import urls as blog_urls
    2. Add a URL to urlpatterns:  url(r'^blog/', include(blog_urls))
"""
from django.conf.urls import url

from . import views

urlpatterns = [
    url(r'^stations/near/(?P<lat>.+)/(?P<long>.+)', views.get_near_stations, name='Get near stations'),
    url(r'^stations/bounded/(?P<bottom>.+)/(?P<left>.+)/(?P<top>.+)/(?P<right>.+)', views.get_bounded_stations, name='Get bounded stations'),
    url(r'^stations/(?P<station_id>.+)', views.get_station, name='Get station information'),
    url(r'^companies?page=(?P<page>.+)&limit=(?P<limit>.+)', views.get_companies, name='Get company collection'),
    url(r'^companies/(?P<company_id>.+)', views.get_company, name='Get company information'),
    url(r'^lines/(?P<line_id>.+)', views.get_line, name='Get line information'),
    url(r'^routes/(?P<route_id>.+)', views.get_route, name='Get route information')
]

@@ -720,23 +720,44 @@
 lat%3E
-.+)/(?P%3Clong%3E.+
+-?%5Cd+(%5C.%5Cd+)?)/(?P%3Clon%3E-?%5Cd+(%5C.%5Cd+)?
 )', 
@@ -828,21 +828,20 @@
 tations/
-bound
+fenc
 ed/(?P%3Cb
@@ -850,49 +850,93 @@
 tom%3E
-.+)/(?P%3Cleft%3E.+)/(?P%3Ctop%3E.+)/(?P%3Cright%3E.+
+-?%5Cd+(%5C.%5Cd+)?)/(?P%3Cleft%3E-?%5Cd+(%5C.%5Cd+)?)/(?P%3Ctop%3E-?%5Cd+(%5C.%5Cd+)?)/(?P%3Cright%3E-?%5Cd+(%5C.%5Cd+)?
 )', 
@@ -945,21 +945,20 @@
 ews.get_
-bound
+fenc
 ed_stati
@@ -976,13 +976,12 @@
 Get 
-bound
+fenc
 ed s
@@ -1022,25 +1022,26 @@
 %3Cstation_id%3E
-.
+%5Cd
 +)', views.g
@@ -1109,42 +1109,23 @@
 nies
-?page=(?P%3Cpage%3E.+)&limit=(?P%3Climit
+/(?P%3Ccompany_id
 %3E.+)
@@ -1143,19 +1143,17 @@
 t_compan
-ies
+y
 , name='
@@ -1168,14 +1168,15 @@
 any 
-collec
+informa
 tion
@@ -1199,35 +1199,16 @@
 ompanies
-/(?P%3Ccompany_id%3E.+)
 ', views
@@ -1210,33 +1210,35 @@
 views.get_compan
-y
+ies
 , name='Get comp
@@ -1233,39 +1233,38 @@
 me='Get company 
-informa
+collec
 tion'),%0A    url(
@@ -1280,25 +1280,26 @@
 (?P%3Cline_id%3E
-.
+%5Cd
 +)', views.g
@@ -1364,25 +1364,26 @@
 ?P%3Croute_id%3E
-.
+%5Cd
 +)', views.g

Correct regular expressions