I'm trying to write a python regular expression that will match both these URLs:
http://www.waymarking.com/waymarks/WM6N3G_Battle_Mountain_State_Park
http://www.waymarking.com/waymarks/WM6N3G
and for both will capture:
http://www.waymarking.com/waymarks/WM6N3G
This is what I have:
(http://www.waymarking.com/waymarks/.*?)_?.*?
But it only matches:
http://www.waymarking.com/waymarks/
Thanks!