|
trying to match a regular expression
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
I think I got it.
This seems to work:
'blogs/([a-z_]+)'
Last edited by johnmerlino; 03-28-2011 at 01:24 AM..
|