Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    Regular Coder
    Join Date
    Oct 2009
    Posts
    189
    Thanks
    38
    Thanked 3 Times in 3 Posts

    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 02:24 AM.


 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •