regex - How do I match this string -


quick question. how match

site.com/characters/ 

and not match

site.com/characters/characters2 

attempt:

site.com/[a-za-z]+/? 

quick answer:

your approach fine. should have used $ (terminating character) specify match.

site.com/[a-z]+/?$ 

Comments

Popular posts from this blog

iphone - Three second countdown in cocos2d -

hyperlink - how to do url routing in php -

c - Avoiding Extra Malloc in Linked List (node->next = NULL) -