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

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -

php - Accessing static methods using newly created $obj or using class Name -