javascript - match 2 urls with localhost -


i'm having hardest time javascript regex, can't figure out how match url:

http://localhost:11111/#!/quote/18283  

and

http://www.myurl.com/#!/quote/23834 

with same regex.

i don't understand regex rules well.

http://[\w\d\.:]+/#!/quote/\d{5} - without other context. don't know negative cases are. parts of urls important, etc, etc.


Comments

Popular posts from this blog

Issues changing the value of an element in an array in matlab -

php - MySQLi binding parameters in a prepared statement doesn't work unless inserted after "WHERE" -

vb.net - Alternative to the T-SQL AS keyword -