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

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -