...

View Full Version : trying to match a regular expression



johnmerlino
03-28-2011, 01:05 AM
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_]+)'



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum