johnmerlino Posted March 28, 2011 Share Posted March 28, 2011 Hey all, I think I get these two wrong: 'blogs/([a-zA-Z0-9\-_\/])' 'blogs/categories/([a-zA-Z0-9\-_\/])' I want the first to match something like blogs/johnmerlino but not blogs/ or not blogs/johnmerlino/abcdef I want the second to match something like blogs/categories/johnmerlino but not blogs/categories/ or blogs/ or blogs/categories/johnmerlino/abcdef Thanks for response. Link to comment https://forums.phpfreaks.com/topic/231902-trying-to-match-a-regular-expression/ Share on other sites More sharing options...
johnmerlino Posted March 28, 2011 Author Share Posted March 28, 2011 This seems to work: 'blogs/([a-z_]+)' Link to comment https://forums.phpfreaks.com/topic/231902-trying-to-match-a-regular-expression/#findComment-1193070 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.